Skip to content

Commit

Permalink
[geometry] Kill DOMRectList. Fixes https://www.w3.org/Bugs/Public/sho…
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Aug 25, 2015
1 parent 1b1c15a commit 5ab338e
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions geometry/Overview.bs
Expand Up @@ -17,7 +17,6 @@ Editor: Rik Cabanier, Adobe Systems Inc., cabanier@adobe.com
Abstract: This specification provides basic geometric interfaces to represent points, rectangles, quadrilaterals and transformation matrices that can be used by other modules or specifications.
!Issues list: <a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=FXTF&amp;component=Geometry&amp;resolution=---">Bugzilla</a> (<a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=FXTF&amp;component=Geometry">file a bug</a>)
Test Suite: http://test.csswg.org/suites/geometry-1_dev/nightly-unstable/
At Risk: The <a interface>DOMRectList</a> interface is at-risk. The authors of this specification await feedback from implementers if the item() function of <a interface>DOMRectList</a> is currently in use on legacy interfaces. If there is no/not enough content to justify <a interface>DOMRectList</a>, legacy interfaces must use sequences instead and <a interface>DOMRectList</a> will be removed from this specification.
Use <i> Autolinks: yes
</pre>

Expand Down Expand Up @@ -252,24 +251,6 @@ the <dfn method lt=fromRect() dfn-for=DOMRect id=dom-domrect-fromrect><code>from

For historical reasons, Window objects must also have a writable, configurable, non-enumerable property named <dfn dfn-type=interface>SVGRect</dfn> whose value is the <a interface>DOMRect</a> interface object.

<h2 id='DOMRectList'>
The DOMRectList Interface</h2>

<pre class='idl'>
[NoInterfaceObject,
ArrayClass]
interface DOMRectList {
readonly attribute unsigned long length;
getter DOMRect? item(unsigned long index);
};
</pre>

The <dfn dfn-type=attribute dfn-for='DOMRectList'>length</dfn> attribute must return the total number of <a interface>DOMRect</a> objects associated with the object.

The <dfn dfn-type=method dfn-for='DOMRectList'>item(<var>index</var>)</dfn> method, when invoked, must return a ''null'' value when <var>index</var> is greater than or equal to the number of <a interface>DOMRect</a> objects associated with the <a interface>DOMRectList</a>. Otherwise, the <a interface>DOMRect</a> object at <var>index</var> must be returned. Indices are zero-based.

ADVISEMENT: <a interface>DOMRectList</a> must be supported for legacy reasons. New interfaces must not use <a interface>DOMRectList</a> and may use Sequences [[!WEBIDL]] instead.

<h2 id='DOMQuad'>
The DOMQuad interface</h2>

Expand Down Expand Up @@ -1147,8 +1128,8 @@ The following changes were made since the <a href="http://www.w3.org/TR/2014/WD-
<li><a interface>DOMPointReadOnly</a> got a constructor taking 4 arguments.</li>
<li><a interface>DOMRectReadOnly</a> got a constructor taking 4 arguments.</li>
<li><a interface>DOMMatrixReadOnly</a> got a constructor taking a sequence of numbers as argument.</li>
<li><a interface>DOMRectList</a> turned to an ArrayClass. The interfaces must just be used for legacy interfaces.</li>
<li>Put <a interface>DOMRectList</a> on at-Risk awaiting browser feedback.</li>
<li>DOMRectList turned to an ArrayClass. The interfaces must just be used for legacy interfaces.</li>
<li>Put DOMRectList on at-Risk awaiting browser feedback.</li>
<li>All interfaces are described in the sense of internal elements to describe the read-only/writable and inheriting behavior.</li>
<li>Replace IndexSizeError exception with TypeError.</li>
</ul>
Expand Down

0 comments on commit 5ab338e

Please sign in to comment.