Skip to content

Commit

Permalink
Clarify statement about Elements. Fixes https://www.w3.org/Bugs/Publi…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 15, 2015
1 parent 5c10bf4 commit 96ef454
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2188,8 +2188,9 @@ class Elements extends Array {
IDL bugs: <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=20020">
Array subclassing</a> and <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=23225">class, not interface</a>.

{{Elements}} is an ES6-style subclass of {{Array}} with two
additional methods. It's the new {{NodeList}} / {{HTMLCollection}}.
{{Elements}} is a subclass of {{Array}} with two additional methods. It replaces the need
for {{HTMLCollection}} and {{NodeList}}. (If <a>nodes</a> need to be represented rather
than <a>elements</a> a simple {{Array}} can be used.)
</div>

<dl class=domintro>
Expand Down Expand Up @@ -9223,6 +9224,7 @@ James Robinson,
Jens Lindström,
João Eiras,
Joe Kesselman,
John Atkins,
Jonas Sicking,
Jonathan Robie,
Joris van der Wel,
Expand Down
8 changes: 5 additions & 3 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>

<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated
<time class="dt-updated" datetime="2015-07-12">12 July 2015</time></span></h2>
<time class="dt-updated" datetime="2015-07-15">15 July 2015</time></span></h2>

<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -2908,8 +2908,9 @@ <h4 class="heading settled" data-level="4.2.6" id="element-collections"><span cl
Array subclassing</a> and <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=23225">class, not interface</a>.


<p><code class="idl"><a data-link-type="idl">Elements</a></code> is an ES6-style subclass of <code class="idl"><a data-link-type="idl">Array</a></code> with two
additional methods. It’s the new <code class="idl"><a data-link-type="idl" href="#nodelist">NodeList</a></code> / <code class="idl"><a data-link-type="idl" href="#htmlcollection">HTMLCollection</a></code>.</p>
<p><code class="idl"><a data-link-type="idl">Elements</a></code> is a subclass of <code class="idl"><a data-link-type="idl">Array</a></code> with two additional methods. It replaces the need
for <code class="idl"><a data-link-type="idl" href="#htmlcollection">HTMLCollection</a></code> and <code class="idl"><a data-link-type="idl" href="#nodelist">NodeList</a></code>. (If <a data-link-type="dfn" href="#concept-node">nodes</a> need to be represented rather
than <a data-link-type="dfn" href="#concept-element">elements</a> a simple <code class="idl"><a data-link-type="idl">Array</a></code> can be used.)</p>
</div>


Expand Down Expand Up @@ -11731,6 +11732,7 @@ <h2 class="no-num heading settled" id="acks"><span class="content">Acknowledgmen
Jens Lindström,
João Eiras,
Joe Kesselman,
John Atkins,
Jonas Sicking,
Jonathan Robie,
Joris van der Wel,
Expand Down

0 comments on commit 96ef454

Please sign in to comment.