FFFF dom-Document xref cleanup · w3c/csswg-drafts@cd4adb0 · GitHub
Skip to content

Commit cd4adb0

Browse files
committed
dom-Document xref cleanup
1 parent fb8b527 commit cd4adb0

2 files changed

Lines changed: 42 additions & 46 deletions

File tree

cssom-view/Overview.html

Lines changed: 19 additions & 21 deletions
402E
Original file line numberDiff line numberDiff line change
@@ -507,28 +507,25 @@ <h3 id="the-screen-interface"><span class="secno">4.2 </span>The <code title="">
507507
<h2 id="extensions-to-the-document-interface"><span class="secno">5 </span>Extensions to the <code title="">Document</code> Interface</h2>
508508

509509
<pre class="idl">partial interface <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a> {
510-
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#element">Element</a>? <a href="#dom-document-elementfrompoint">elementFromPoint</a>(float <var title="">x</var>, float <var title="">y</var>);
511-
<a href="#caretposition">CaretPosition</a>? <a href="#dom-document-caretpositionfrompoint">caretPositionFromPoint</a>(float <var title="">x</var>, float <var title="">y</var>);
510+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#element">Element</a>? <a href="#dom-document-elementfrompoint" title="dom-Document-elementFromPoint">elementFromPoint</a>(float <var title="">x</var>, float <var title="">y</var>);
511+
<a href="#caretposition">CaretPosition</a>? <a href="#dom-document-caretpositionfrompoint" title="dom-Document-caretPositionFromPoint">caretPositionFromPoint</a>(float <var title="">x</var>, float <var title="">y</var>);
512512
};</pre>
513513

514514
<p>The
515-
<dfn id="dom-document-elementfrompoint" title="elementfrompoint"><code>elementFromPoint(<var title="">x</var>,
516-
<var title="">y</var>)</code></dfn> method, when invoked,
517-
must return the element at coordinates
518-
<var>x</var>,<var>y</var> in the <a href="#viewport">viewport</a>. The element to be
519-
returned is determined through hit testing. If either argument is
520-
negative, <var title="">x</var> is greater than the <a href="#viewport">viewport</a>
521-
width excluding the size of a rendered scroll bar (if any), or
522-
<var title="">y</var> is greather than the <a href="#viewport">viewport</a> height
523-
excluding the size of a rendered scroll bar (if any), the method
524-
must return <code>null</code>. If there is no element
525-
at the given position the method must return the root
526-
element, if any, or <code>null</code> otherwise.</p>
515+
<dfn id="dom-document-elementfrompoint" title="dom-Document-elementFromPoint"><code>elementFromPoint(<var>x</var>, <var>y</var>)</code></dfn>
516+
method must return the element at coordinates <var>x</var>,<var>y</var> in
517+
the <a href="#viewport">viewport</a>. The element to be returned is determined
518+
through hit testing. If either argument is negative, <var title="">x</var> is
519+
greater than the <a href="#viewport">viewport</a> width excluding the size of a
520+
rendered scroll bar (if any), or <var title="">y</var> is greather than the
521+
<a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar
522+
(if any), the method must return null. If there is no element at the given
523+
position the method must return the root element, if any, or null
524+
otherwise.</p>
527525

528526
<p>The
529-
<dfn id="dom-document-caretpositionfrompoint" title="caretpositionfrompoint"><code>caretPositionFromPoint(<var title="">x</var>,
530-
<var title="">y</var>)</code></dfn> method, when invoked,
531-
must return the result of running these steps:</p>
527+
<dfn id="dom-document-caretpositionfrompoint" title="dom-Document-caretPositionFromPoint"><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn>
528+
method must return the result of running these steps:</p>
532529

533530
<ol>
534531
<li><p>If either argument is negative, <var title="">x</var> is greater
@@ -570,19 +567,20 @@ <h2 id="extensions-to-the-document-interface"><span class="secno">5 </span>Exten
570567

571568
<dl>
572569
<dt><a href="#caret-node">caret node</a></dt>
573-
<dd><p>The <code title="dom-Range-startContainer">startContainer</code>
570+
<dd><p>The <code class="external" title="dom-Range-startContainer"><a href="http://html5.org/specs/dom-range.html#dom-range-startcontainer">startContainer</a></code>
574571
of the <a href="#caret-range">caret range</a>.</dd>
575572

576573
<dt><a href="#caret-offset">caret offset</a></dt>
577-
<dd><p>The <code title="dom-Range-startOffset">startOffset</code> of
574+
<dd><p>The <code class="external" title="dom-Range-startOffset"><a href="http://html5.org/specs/dom-range.html#dom-range-startoffset">startOffset</a></code> of
578575
the <a href="#caret-range">caret range</a>.</p>
579576
</dl>
580577
</li>
581578
</ol>
582579

583580
<p class="note">The specifics of hit testing are out of scope of this
584581
specification and therefore the exact details of
585-
<code><a href="#dom-document-elementfrompoint">elementFromPoint()</a></code> and <code><a href="#dom-document-caretpositionfrompoint">caretPositionFromPoint()</a></code>
582+
<code title="dom-Document-elementFromPoint"><a href="#dom-document-elementfrompoint">elementFromPoint()</a></code> and
583+
<code title="dom-Document-caretPositionFromPoint"><a href="#dom-document-caretpositionfrompoint">caretPositionFromPoint()</a></code>
586584
are therefore too. Hit testing will hopefully be defined in a future
587585
revision of CSS or HTML.</p>
588586

@@ -597,7 +595,7 @@ <h3 id="the-caretposition-interface"><span class="secno">5.1 </span>The <code ti
597595
object.</p>
598596

599597
<pre class="idl">interface <dfn id="caretposition">CaretPosition</dfn> {
600-
readonly attribute <span>Node</span> <a href="#dom-caretposition-offsetnode" title="dom-CaretPosition-offsetNode">offsetNode</a>;
598+
readonly attribute <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#node">Node</a> <a href="#dom-caretposition-offsetnode" title="dom-CaretPosition-offsetNode">offsetNode</a>;
601599
readonly attribute unsigned long <a href="#dom-caretposition-offset" title="dom-CaretPosition-offset">offset</a>;<!--
602600
readonly attribute <span data-anolis-spec=domrange>Range</span>? <span title="dom-CaretPosition-range">range</span>;-->
603601
};</pre>

cssom-view/Overview.src.html

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -478,28 +478,25 @@ <h3 id="the-screen-interface">The <code title>Screen</code> Interface</h3>
478478
<h2 id="extensions-to-the-document-interface">Extensions to the <code title>Document</code> Interface</h2>
479479

480480
<pre class="idl">partial interface <span data-anolis-spec=domcore>Document</span> {
481-
<span data-anolis-spec=domcore>Element</span>? <span>elementFromPoint</span>(float <var title>x</var>, float <var title>y</var>);
482-
<span>CaretPosition</span>? <span>caretPositionFromPoint</span>(float <var title>x</var>, float <var title>y</var>);
481+
<span data-anolis-spec=domcore>Element</span>? <span title=dom-Document-elementFromPoint>elementFromPoint</span>(float <var title>x</var>, float <var title>y</var>);
482+
<span>CaretPosition</span>? <span title=dom-Document-caretPositionFromPoint>caretPositionFromPoint</span>(float <var title>x</var>, float <var title>y</var>);
483483
};</pre>
484484

485485
<p>The
486-
<dfn id="dom-document-elementfrompoint" title="elementfrompoint"><code>elementFromPoint(<var title>x</var>,
487-
<var title>y</var>)</code></dfn> method, when invoked,
488-
must return the element at coordinates
489-
<var>x</var>,<var>y</var> in the <span>viewport</span>. The element to be
490-
returned is determined through hit testing. If either argument is
491-
negative, <var title>x</var> is greater than the <span>viewport</span>
492-
width excluding the size of a rendered scroll bar (if any), or
493-
<var title>y</var> is greather than the <span>viewport</span> height
494-
excluding the size of a rendered scroll bar (if any), the method
495-
must return <code>null</code>. If there is no element
496-
at the given position the method must return the root
497-
element, if any, or <code>null</code> otherwise.</p>
486+
<dfn title=dom-Document-elementFromPoint><code>elementFromPoint(<var>x</var>, <var>y</var>)</code></dfn>
487+
method must return the element at coordinates <var>x</var>,<var>y</var> in
488+
the <span>viewport</span>. The element to be returned is determined
489+
through hit testing. If either argument is negative, <var title>x</var> is
490+
greater than the <span>viewport</span> width excluding the size of a
491+
rendered scroll bar (if any), or <var title>y</var> is greather than the
492+
<span>viewport</span> height excluding the size of a rendered scroll bar
493+
(if any), the method must return null. If there is no element at the given
494+
position the method must return the root element, if any, or null
495+
otherwise.</p>
498496

499497
<p>The
500-
<dfn id="dom-document-caretpositionfrompoint" title="caretpositionfrompoint"><code>caretPositionFromPoint(<var title>x</var>,
501-
<var title>y</var>)</code></dfn> method, when invoked,
502-
must return the result of running these steps:</p>
498+
<dfn title=dom-Document-caretPositionFromPoint><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn>
499+
method must return the result of running these steps:</p>
503500

504501
<ol>
505502
<li><p>If either argument is negative, <var title>x</var> is greater
@@ -541,25 +538,26 @@ <h2 id="extensions-to-the-document-interface">Extensions to the <code title>Docu
541538

542539
<dl>
543540
<dt><span>caret node</span></dt>
544-
<dd><p>The <code title="dom-Range-startContainer">startContainer</code>
541+
<dd><p>The <code data-anolis-spec=domrange title=dom-Range-startContainer>startContainer</code>
545542
of the <span>caret range</span>.</p></dd>
546543

547544
<dt><span>caret offset</span></dt>
548-
<dd><p>The <code title="dom-Range-startOffset">startOffset</code> of
545+
<dd><p>The <code data-anolis-spec=domrange title=dom-Range-startOffset>startOffset</code> of
549546
the <span>caret range</span>.</p>
550547
</dl>
551548
</li>
552549
</ol>
553550

554551
<p class="note">The specifics of hit testing are out of scope of this
555552
specification and therefore the exact details of
556-
<code>elementFromPoint()</code> and <code>caretPositionFromPoint()</code>
553+
<code title=dom-Document-elementFromPoint>elementFromPoint()</code> and
554+
<code title=dom-Document-caretPositionFromPoint>caretPositionFromPoint()</code>
557555
are therefore too. Hit testing will hopefully be defined in a future
558556
revision of CSS or HTML.</p>
559557

560558

561559

562-
<h3 id="the-caretposition-interface">The <code title>CaretPosition</code> Interface</h3>
560+
<h3 id=the-caretposition-interface>The <code title>CaretPosition</code> Interface</h3>
563561

564562
<p>A <dfn>caret position</dfn> gives the position of a
565563
text insertion point indicator. It always has an associated
@@ -568,17 +566,17 @@ <h3 id="the-caretposition-interface">The <code title>CaretPosition</code> Interf
568566
object.</p>
569567

570568
<pre class="idl">interface <dfn id="caretposition">CaretPosition</dfn> {
571-
readonly attribute <span>Node</span> <span title="dom-CaretPosition-offsetNode">offsetNode</span>;
572-
readonly attribute unsigned long <span title="dom-CaretPosition-offset">offset</span>;<!--
569+
readonly attribute <span data-anolis-spec=domcore>Node</span> <span title=dom-CaretPosition-offsetNode>offsetNode</span>;
570+
readonly attribute unsigned long <span title=dom-CaretPosition-offset>offset</span>;<!--
573571
readonly attribute <span data-anolis-spec=domrange>Range</span>? <span title="dom-CaretPosition-range">range</span>;-->
574572
};</pre>
575573

576574
<p>The
577-
<dfn title="dom-CaretPosition-offsetNode"><code>offsetNode</code></dfn>
575+
<dfn title=dom-CaretPosition-offsetNode><code>offsetNode</code></dfn>
578576
attribute must return the <span>caret node</span>.</p>
579577

580578
<p>The
581-
<dfn title="dom-CaretPosition-offset"><code>offset</code></dfn>
579+
<dfn title=dom-CaretPosition-offset><code>offset</code></dfn>
582580
attribute must return the <span>caret offset</span>.</p>
583581

584582
<!--

0 commit comments

Comments
 (0)