You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The <dfnid="dom-caretposition-offsetnode" title="dom-CaretPosition-offsetNode"><code>offsetNode</code></dfn> attribute must return the <ahref="#caret-node">caret node</a>.</p>
@@ -962,10 +962,10 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
962
962
<codetitle="dom-Range-getClientRects"><ahref="#dom-range-getclientrects">getClientRects()</a></code> method on the
963
963
range.
964
964
<li><p>If <var>list</var> is empty, return null.
965
-
<li><p>Return the <code><ahref="#clientrect">ClientRect</a></code> object in <var>list</var> at index 0.
965
+
<li><p>Return the <code><ahref="#domrect">DOMRect</a></code> object in <var>list</var> at index 0.
966
966
</ol>
967
967
<li><p>If <ahref="#caret-node">caret node</a> is a text entry widget that is a replaced element,
968
-
and that is in the document, return a <code><ahref="#clientrect">ClientRect</a></code> object for the caret
968
+
and that is in the document, return a <code><ahref="#domrect">DOMRect</a></code> object for the caret
969
969
in the widget as represented by the <ahref="#caret-offset">caret offset</a> value. The SVG transforms and CSS transforms that apply to the element and its ancestors are
<p>The <dfnid="dom-element-getclientrects" title="dom-Element-getClientRects"><code>getClientRects()</code></dfn> method, when invoked, must return the result of the following algorithm:</p>
998
998
<ol>
999
999
<li><p>If the element on which it was invoked does not have an associated
1000
-
<ahref="#layout-box">layout box</a> return an empty <code><ahref="#clientrectlist">ClientRectList</a></code> object and stop
1000
+
<ahref="#layout-box">layout box</a> return an empty <code><ahref="#domrectlist">DOMRectList</a></code> object and stop
1001
1001
this algorithm.</li>
1002
1002
<li><p>If the element has an associated <ahref="#svg-layout-box">SVG layout box</a> return a
1003
-
<code><ahref="#clientrectlist">ClientRectList</a></code> object containing a single
1004
-
<code><ahref="#clientrect">ClientRect</a></code> object that describes the bounding box of the
1003
+
<code><ahref="#domrectlist">DOMRectList</a></code> object containing a single
1004
+
<code><ahref="#domrect">DOMRect</a></code> object that describes the bounding box of the
1005
1005
element as defined by the SVG specification, applying the SVG transforms and CSS transforms that apply to the element and its ancestors.
<p>The <dfnid="dom-range-getclientrects" title="dom-Range-getClientRects"><code>getClientRects()</code></dfn> method, when invoked, must return an empty
1463
-
<code><ahref="#clientrectlist">ClientRectList</a></code> object if the range is not in the document and
1464
-
otherwise a <code><ahref="#clientrectlist">ClientRectList</a></code> object containing a list of
1465
-
<code><ahref="#clientrect">ClientRect</a></code> objects in content order that matches the
1463
+
<code><ahref="#domrectlist">DOMRectList</a></code> object if the range is not in the document and
1464
+
otherwise a <code><ahref="#domrectlist">DOMRectList</a></code> object containing a list of
1465
+
<code><ahref="#domrect">DOMRect</a></code> objects in content order that matches the
1466
1466
following constraints:</p>
1467
1467
<ul>
1468
1468
<li>For each element selected by the range, whose parent is not selected
<li>For each <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#text">Text</a></code> node selected or partially selected by the
1473
1473
range (including when the boundary-points are identical), include a
1474
-
<code><ahref="#clientrect">ClientRect</a></code> object (for the part that is selected, not the
1475
-
whole line box). The bounds of these <code><ahref="#clientrect">ClientRect</a></code> objects are
1474
+
<code><ahref="#domrect">DOMRect</a></code> object (for the part that is selected, not the
1475
+
whole line box). The bounds of these <code><ahref="#domrect">DOMRect</a></code> objects are
1476
1476
computed using font metrics; thus, for horizontal writing, the vertical
1477
1477
dimension of each box is determined by the font ascent and descent, and
1478
1478
the horizontal dimension by the text advance width. The SVG transforms and CSS transforms that apply to the ancestors are applied.
<p>The <code><ahref="#clientrectlist">ClientRectList</a></code> interface consists of an ordered list of <code><ahref="#clientrect">ClientRect</a></code> objects.</p>
1590
+
<p>The <code><ahref="#domrectlist">DOMRectList</a></code> interface consists of an ordered list of <code><ahref="#domrect">DOMRect</a></code> objects.</p>
readonly attribute unsigned long <ahref="#dom-domrectlist-length" title="dom-DOMRectList-length">length</a>;
1594
+
getter <ahref="#domrect">DOMRect</a><ahref="#dom-domrectlist-item" title="dom-DOMRectList-item">item</a>(unsigned long index);
1595
1595
};</pre>
1596
1596
1597
-
<p>The <dfnid="dom-clientrectlist-length" title="dom-ClientRectList-length"><code>length</code></dfn> attribute must return the total number of <code><ahref="#clientrect">ClientRect</a></code> objects associated with
1597
+
<p>The <dfnid="dom-domrectlist-length" title="dom-DOMRectList-length"><code>length</code></dfn> attribute must return the total number of <code><ahref="#domrect">DOMRect</a></code> objects associated with
1598
1598
the object.</p>
1599
1599
1600
-
<p>The <dfnid="dom-clientrectlist-item" title="dom-ClientRectList-item"><code>item(<var>index</var>)</code></dfn> method, when invoked, must throw an
1600
+
<p>The <dfnid="dom-domrectlist-item" title="dom-DOMRectList-item"><code>item(<var>index</var>)</code></dfn> method, when invoked, must throw an
1601
1601
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#indexsizeerror">IndexSizeError</a></code> exception when <var>index</var> is
1602
-
greater than the number of <code><ahref="#clientrect">ClientRect</a></code> objects associated with the object. Otherwise, the <code><ahref="#clientrect">ClientRect</a></code> object at
1602
+
greater than the number of <code><ahref="#domrect">DOMRect</a></code> objects associated with the object. Otherwise, the <code><ahref="#domrect">DOMRect</a></code> object at
<p>Objects implementing the <code><ahref="#clientrect">ClientRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
<p>The <dfnid="dom-clientrect-top" title="dom-ClientRect-top"><code>top</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the top of
1619
+
<p>The <dfnid="dom-domrect-top" title="dom-DOMRect-top"><code>top</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the top of
1620
1620
the rectangle box.</p>
1621
1621
1622
-
<p>The <dfnid="dom-clientrect-right" title="dom-ClientRect-right"><code>right</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1622
+
<p>The <dfnid="dom-domrect-right" title="dom-DOMRect-right"><code>right</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1623
1623
right of the rectangle box.</p>
1624
1624
1625
-
<p>The <dfnid="dom-clientrect-bottom" title="dom-ClientRect-bottom"><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1625
+
<p>The <dfnid="dom-domrect-bottom" title="dom-DOMRect-bottom"><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1626
1626
bottom of the rectangle box.</p>
1627
1627
1628
-
<p>The <dfnid="dom-clientrect-left" title="dom-ClientRect-left"><code>left</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the left
1628
+
<p>The <dfnid="dom-domrect-left" title="dom-DOMRect-left"><code>left</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the left
1629
1629
of the rectangle box.</p>
1630
1630
1631
-
<p>The <dfnid="dom-clientrect-width" title="dom-ClientRect-width"><code>width</code></dfn> attribute must return the width of the rectangle box.</p>
1632
-
<pclass="note">This is identical to <codetitle="dom-ClientRect-right"><ahref="#dom-clientrect-right">right</a></code> minus <codetitle="dom-ClientRect-left"><ahref="#dom-clientrect-left">left</a></code>.</p>
1631
+
<p>The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute must return the width of the rectangle box.</p>
1632
+
<pclass="note">This is identical to <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> minus <codetitle="dom-DOMRect-left"><ahref="#dom-domrect-left">left</a></code>.</p>
1633
1633
1634
-
<p>The <dfnid="dom-clientrect-height" title="dom-ClientRect-height"><code>height</code></dfn> attribute must return the height of the rectangle box.</p>
1635
-
<pclass="note">This is identical to <codetitle="dom-ClientRect-bottom"><ahref="#dom-clientrect-bottom">bottom</a></code> minus <codetitle="dom-ClientRect-top"><ahref="#dom-clientrect-top">top</a></code>.</p>
1634
+
<p>The <dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute must return the height of the rectangle box.</p>
1635
+
<pclass="note">This is identical to <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> minus <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>.</p>
0 commit comments