Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Kill DOMRectList" #186

Merged
merged 3 commits into from
Aug 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions geometry/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,29 @@ steps:
</div>


<h2 id=DOMRectList>The DOMRectList interface</h2>

<pre class=idl>
[NoInterfaceObject,
LegacyArrayClass]
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 {{DOMRect}} objects associated with the object.

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

ADVISEMENT: {{DOMRectList}} only exists for compatibility with legacy Web content. When specifying a
new API, {{DOMRectList}} must not be used. Use <code>sequence&lt;DOMRect></code> instead. [[WEBIDL]]


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

<p>Objects implementing the {{DOMQuad}} interface represents a <dfn>quadrilateral</dfn>.
Expand Down Expand Up @@ -2087,8 +2110,6 @@ href="https://www.w3.org/TR/2014/WD-geometry-1-20140918/">18 September 2014 Work

<li><p>Introduced the {{DOMMatrixInit}} dictionary.

<li><p>Removed the <code>DOMRectList</code> interface.

<li><p>Added JSON serializers for the interfaces.

<li>
Expand Down Expand Up @@ -2142,9 +2163,10 @@ Draft</a>.

<li><p>{{DOMMatrixReadOnly}} got a constructor taking a sequence of numbers as argument.

<li><p>DOMRectList turned to an ArrayClass. The interfaces can just be used for legacy interfaces.
<li><p>{{DOMRectList}} turned to an ArrayClass. The interfaces can just be used for legacy
interfaces.

<li><p>Put DOMRectList on at-Risk awaiting browser feedback.
<li><p>Put {{DOMRectList}} on at-Risk awaiting browser feedback.

<li><p>All interfaces are described in the sense of internal elements to describe the
read-only/writable and inheriting behavior.
Expand Down