hixie: Make collections inherit from HTMLCollection (whatwg r4323)

hixie: Make collections inherit from HTMLCollection (whatwg r4323)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3458&r2=1.3459&f=h
http://html5.org/tools/web-apps-tracker?from=4322&to=4323

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3458
retrieving revision 1.3459
diff -u -d -r1.3458 -r1.3459
--- Overview.html 25 Oct 2009 04:31:06 -0000 1.3458
+++ Overview.html 25 Oct 2009 06:03:00 -0000 1.3459
@@ -4067,7 +4067,7 @@
    <li><p>If <var title="">position</var> is beyond the end of <var title="">input</var>, set the string being modified to <var title="">output</var>, and abort these steps.</li>
 
    <li><p>If the character at <var title="">position</var> is a
-   <a href="#space-character">space character</a>:
+   <a href="#space-character">space character</a>:</p>
 
     <ol><li><p>Append the character at <var title="">position</var> to
      the end of <var title="">output</var>.</li>
@@ -4911,7 +4911,7 @@
   <code><a href="#htmlelement">HTMLElement</a></code>, or an interface that descends from
   <code><a href="#htmlelement">HTMLElement</a></code>, then, on getting, it must run the
   following algorithm (stopping at the first point where a value is
-  returned):
+  returned):</p>
 
   <ol><li>If the corresponding content attribute is absent, then the
    IDL attribute must return null.</li>
@@ -4997,7 +4997,7 @@
 -->
   </dl><div class="impl">
 
-  <hr><p>The object's <span>indices of the supported indexed
+  <p>The object's <span>indices of the supported indexed
   properties</span> are the numbers in the range zero to one less than
   the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
   there are no such elements, then there are no <span>supported
@@ -5049,17 +5049,16 @@
   <a href="#collections" title="collections">collection</a> of elements just like
   <code><a href="#htmlcollection">HTMLCollection</a></code>, with the exception that its <code title="dom-HTMLAllCollection-namedItem"><a href="#dom-htmlallcollection-nameditem">namedItem()</a></code> method
   returns an <code><a href="#htmlcollection">HTMLCollection</a></code> object when there are
-  multiple matching elements.<pre class="idl">interface <dfn id="htmlallcollection">HTMLAllCollection</dfn> {
-  readonly attribute unsigned long <a href="#dom-htmlallcollection-length" title="dom-HTMLAllCollection-length">length</a>;
-  caller getter Element <a href="#dom-htmlallcollection-item" title="dom-HTMLAllCollection-item">item</a>(in unsigned long index);
-  caller getter object <a href="#dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem">namedItem</a>(in DOMString name);
+  multiple matching elements.<pre class="idl">interface <dfn id="htmlallcollection">HTMLAllCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
+  // inherits <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a> and <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
+  caller getter object <a href="#dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem()
   <a href="#htmlallcollection">HTMLAllCollection</a> <a href="#dom-htmlallcollection-tags" title="dom-HTMLAllCollection-tags">tags</a>(in DOMString tagName);
-};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLAllCollection-length"><a href="#dom-htmlallcollection-length">length</a></code></dt>
+};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length"><a href="#dom-htmlcollection-length">length</a></code></dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item"><a href="#dom-htmlallcollection-item">item</a></code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item"><a href="#dom-htmlcollection-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">collection</var>[<var title="">index</var>]</dt>
    <dt><var title="">collection</var>(<var title="">index</var>)</dt>
    <dd>
@@ -5067,8 +5066,8 @@
     <p>Returns null if <var title="">index</var> is out of range.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item"><a href="#dom-htmlallcollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
-   <dt><var title="">collection</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item"><a href="#dom-htmlallcollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-namedItem"><a href="#dom-htmlallcollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">collection</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-namedItem"><a href="#dom-htmlallcollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">collection</var>[<var title="">name</var>]</dt>
    <dt><var title="">collection</var>(<var title="">name</var>)</dt>
    <dd>
@@ -5089,28 +5088,10 @@
 
   </dl><div class="impl">
 
-  <hr><p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to one less than
-  the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
-
-  <p>The <dfn id="dom-htmlallcollection-length" title="dom-HTMLAllCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
-  collection</a>.</p>
-
-  <p>The <dfn id="dom-htmlallcollection-item" title="dom-HTMLAllCollection-item"><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th node in the collection. If there is no <var title="">index</var>th node in the collection, then the method must
-  return null.</p>
-
-  <p>The <span>names of the supported named properties</span> consist
-  of the values of the <code title="">name</code> attributes of each
-  <code><a href="#the-a-element">a</a></code>, <code><a href="#the-applet-element">applet</a></code>, <code><a href="#the-area-element">area</a></code>,
-  <code><a href="#the-embed-element">embed</a></code>, <code><a href="#the-form-element">form</a></code>, <code><a href="#frame">frame</a></code>,
-  <code><a href="#frameset">frameset</a></code>, <code><a href="#the-iframe-element">iframe</a></code>, <code><a href="#the-img-element">img</a></code>, and
-  <code><a href="#the-object-element">object</a></code> element <a href="#represented-by-the-collection">represented by the
-  collection</a> with a <code title="">name</code> attribute, plus
-  the list of IDs that the elements <a href="#represented-by-the-collection">represented by the
-  collection</a> have.</p>
+  <p>The object's <span>indices of the supported indexed
+  properties</span> and <span>names of the supported named
+  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
+  objects.</p>
 
   <p>The <dfn id="dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem"><code>namedItem(<var title="">key</var>)</code></dfn> method must act according to the
   following algorithm:</p>
@@ -5156,20 +5137,19 @@
 
   </div><h5 id="htmlformcontrolscollection-0"><span class="secno">2.7.2.3 </span>HTMLFormControlsCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <code><a href="#htmlformcontrolscollection">HTMLFormControlsCollection</a></code> interface represents
   a <a href="#collections" title="collections">collection</a> of <a href="#category-listed" title="category-listed">listed</a> elements in <code><a href="#the-form-element">form</a></code>
-  and <code><a href="#the-fieldset-element">fieldset</a></code> elements.<pre class="idl">interface <dfn id="htmlformcontrolscollection">HTMLFormControlsCollection</dfn> {
-  readonly attribute unsigned long <a href="#dom-htmlformcontrolscollection-length" title="dom-HTMLFormControlsCollection-length">length</a>;
-  caller getter <a href="#htmlelement">HTMLElement</a> <a href="#dom-htmlformcontrolscollection-item" title="dom-HTMLFormControlsCollection-item">item</a>(in unsigned long index);
-  caller getter object <a href="#dom-htmlformcontrolscollection-nameditem" title="dom-HTMLFormControlsCollection-namedItem">namedItem</a>(in DOMString name);
+  and <code><a href="#the-fieldset-element">fieldset</a></code> elements.<pre class="idl">interface <dfn id="htmlformcontrolscollection">HTMLFormControlsCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
+  // inherits <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a> and <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
+  caller getter object <a href="#dom-htmlformcontrolscollection-nameditem" title="dom-HTMLFormControlsCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem()
 };
 
 interface <dfn id="radionodelist">RadioNodeList</dfn> : <span>NodeList</span> {
           attribute DOMString <a href="#dom-radionodelist-value" title="dom-RadioNodeList-value">value</a>;
-};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-length"><a href="#dom-htmlformcontrolscollection-length">length</a></code></dt>
+};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length"><a href="#dom-htmlcollection-length">length</a></code></dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-item"><a href="#dom-htmlformcontrolscollection-item">item</a></code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item"><a href="#dom-htmlcollection-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">collection</var>[<var title="">index</var>]</dt>
    <dt><var title="">collection</var>(<var title="">index</var>)</dt>
    <dd>
@@ -5177,8 +5157,8 @@
     <p>Returns null if <var title="">index</var> is out of range.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-item"><a href="#dom-htmlformcontrolscollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
-   <dt><var title="">radioNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-item"><a href="#dom-htmlformcontrolscollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-namedItem"><a href="#dom-htmlformcontrolscollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">radioNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-namedItem"><a href="#dom-htmlformcontrolscollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">collection</var>[<var title="">name</var>]</dt>
    <dt><var title="">collection</var>(<var title="">name</var>)</dt>
    <dd>
@@ -5188,38 +5168,23 @@
    </dd>
 
    <dt><var title="">radioNodeList</var> . <var title="">value</var> [ = <var title="">value</var> ]</dt>
-
    <dd>
-
-    <p>Returns the value of the first checked radio button represented
-    by the object.</p>
-
-    <p>Can be set, to check the first radio button with the given
-    value represented by the object.</p>
-
+    <p>Returns the value of the first checked radio button represented by the object.</p>
+    <p>Can be set, to check the first radio button with the given value represented by the object.</p>
    </dd>
 
   </dl><div class="impl">
 
-  <hr><p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to one less than
-  the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
-
-  <p>The <dfn id="dom-htmlformcontrolscollection-length" title="dom-HTMLFormControlsCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
-  collection</a>.</p>
-
-  <p>The <dfn id="dom-htmlformcontrolscollection-item" title="dom-HTMLFormControlsCollection-item"><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th node in the collection. If there is no <var title="">index</var>th node in the collection, then the method must
-  return null.</p>
+  <p>The object's <span>indices of the supported indexed
+  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
+  objects.</p>
 
   <p>The <span>names of the supported named properties</span> consist
   of the values of all the <code title="attr-id"><a href="#the-id-attribute">id</a></code> and <code title="attr-fe-name"><a href="#attr-fe-name">name</a></code> attributes of all the elements
   <a href="#represented-by-the-collection">represented by the collection</a>.</p>
 
   <p>The <dfn id="dom-htmlformcontrolscollection-nameditem" title="dom-HTMLFormControlsCollection-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
-  following algorithm:
+  following algorithm:</p>
 
   <ol><li>If, at the time the method is called, there is exactly one node
    in the collection that has either an <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute or a <code title="attr-fe-name"><a href="#attr-fe-name">name</a></code> attribute equal to <var title="">name</var>, then return that node and stop the
@@ -5281,10 +5246,10 @@
 --></div><h5 id="htmloptionscollection-0"><span class="secno">2.7.2.4 </span>HTMLOptionsCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code> interface represents a
   list of <code><a href="#the-option-element">option</a></code> elements. It is always rooted on a
   <code><a href="#the-select-element">select</a></code> element and has attributes and methods that
-  manipulate that element's descendants.<pre class="idl">interface <dfn id="htmloptionscollection">HTMLOptionsCollection</dfn> {
-           attribute unsigned long <a href="#dom-htmloptionscollection-length" title="dom-HTMLOptionsCollection-length">length</a>;
-  caller getter <a href="#htmloptionelement">HTMLOptionElement</a> <a href="#dom-htmloptionscollection-item" title="dom-HTMLOptionsCollection-item">item</a>(in unsigned long index);
-  caller getter object <a href="#dom-htmloptionscollection-nameditem" title="dom-HTMLOptionsCollection-namedItem">namedItem</a>(in DOMString name);
+  manipulate that element's descendants.<pre class="idl">interface <dfn id="htmloptionscollection">HTMLOptionsCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
+  // inherits <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
+           attribute unsigned long <a href="#dom-htmloptionscollection-length" title="dom-HTMLOptionsCollection-length">length</a>; // overrides inherited length
+  caller getter object <a href="#dom-htmloptionscollection-nameditem" title="dom-HTMLOptionsCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem()
   void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="#htmlelement">HTMLElement</a> element, in optional <a href="#htmlelement">HTMLElement</a> before);
   void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="#htmlelement">HTMLElement</a> element, in long before);
   void <a href="#dom-htmloptionscollection-remove" title="dom-HTMLOptionsCollection-remove">remove</a>(in long index);
@@ -5295,7 +5260,7 @@
     <p>When set to a greater number, adds new blank <code><a href="#the-option-element">option</a></code> elements to that container.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-item"><a href="#dom-htmloptionscollection-item">item</a></code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item"><a href="#dom-htmlcollection-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">collection</var>[<var title="">index</var>]</dt>
    <dt><var title="">collection</var>(<var title="">index</var>)</dt>
    <dd>
@@ -5303,8 +5268,8 @@
     <p>Returns null if <var title="">index</var> is out of range.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-item"><a href="#dom-htmloptionscollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
-   <dt><var title="">nodeList</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-item"><a href="#dom-htmloptionscollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-namedItem"><a href="#dom-htmloptionscollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">nodeList</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-namedItem"><a href="#dom-htmloptionscollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">collection</var>[<var title="">name</var>]</dt>
    <dt><var title="">collection</var>(<var title="">name</var>)</dt>
    <dd>
@@ -5332,10 +5297,8 @@
   </dl><div class="impl">
 
   <p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to one less than
-  the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
+  objects.</p>
 
   <p>On getting, the <dfn id="dom-htmloptionscollection-length" title="dom-HTMLOptionsCollection-length"><code>length</code></dfn>
   attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
@@ -5359,15 +5322,12 @@
   children to existing <code><a href="#the-optgroup-element">optgroup</a></code> elements (though it can
   remove children from them).</p>
 
-  <p>The <dfn id="dom-htmloptionscollection-item" title="dom-HTMLOptionsCollection-item"><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th node in the collection. If there is no <var title="">index</var>th node in the collection, then the method must
-  return null.</p>
-
   <p>The <span>names of the supported named properties</span> consist
   of the values of all the <code title="attr-id"><a href="#the-id-attribute">id</a></code> and <code title="attr-option-name">name</code> attributes of all the elements
   <a href="#represented-by-the-collection">represented by the collection</a>.</p>
 
   <p>The <dfn id="dom-htmloptionscollection-nameditem" title="dom-HTMLOptionsCollection-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
-  following algorithm:
+  following algorithm:</p>
 
   <ol><li>If, at the time the method is called, there is exactly one node
    in the collection that has either an <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute or a <code title="attr-option-name">name</code> attribute equal to <var title="">name</var>, then return that node and stop the
@@ -5435,28 +5395,22 @@
   </ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div><h5 id="htmlpropertycollection-0"><span class="secno">2.7.2.5 </span>HTMLPropertyCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <code><a href="#htmlpropertycollection">HTMLPropertyCollection</a></code> interface represents a
   <a href="#collections" title="collections">collection</a> of elements that add
   name-value pairs to a particular <a href="#concept-item" title="concept-item">item</a> in the <a href="#microdata">microdata</a>
-  model.<pre class="idl">interface <dfn id="htmlpropertycollection">HTMLPropertyCollection</dfn> {
-  readonly attribute unsigned long <a href="#dom-htmlpropertycollection-length" title="dom-HTMLPropertyCollection-length">length</a>;
+  model.<pre class="idl">interface <dfn id="htmlpropertycollection">HTMLPropertyCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
+  // inherits <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a> and <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
+  caller getter <a href="#propertynodelist">PropertyNodeList</a> <a href="#dom-htmlpropertycollection-nameditem" title="dom-HTMLPropertyCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem()
   readonly attribute <span>DOMStringList</span> <a href="#dom-htmlpropertycollection-names" title="dom-HTMLPropertyCollection-names">names</a>;
-  caller getter <a href="#htmlelement">HTMLElement</a> <a href="#dom-htmlpropertycollection-item" title="dom-HTMLPropertyCollection-item">item</a>(in unsigned long index);
-  caller getter <a href="#propertynodelist">PropertyNodeList</a> <a href="#dom-htmlpropertycollection-nameditem" title="dom-HTMLPropertyCollection-namedItem">namedItem</a>(in DOMString name);
 };
 
 typedef sequence&lt;any&gt; <dfn id="propertyvaluearray">PropertyValueArray</dfn>;
 
 interface <dfn id="propertynodelist">PropertyNodeList</dfn> : <span>NodeList</span> {
   readonly attribute <a href="#propertyvaluearray">PropertyValueArray</a> <a href="#dom-propertynodelist-values" title="dom-PropertyNodeList-values">values</a>;
-};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLPropertyCollection-length"><a href="#dom-htmlpropertycollection-length">length</a></code></dt>
+};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length"><a href="#dom-htmlcollection-length">length</a></code></dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
    </dd>
 
-   <dt><var title="">collection</var> . <code title="dom-HTMLPropertyCollection-names"><a href="#dom-htmlpropertycollection-names">names</a></code></dt>
-   <dd>
-    <p>Returns a <code>DOMStringList</code> with the <a href="#property-names">property names</a> of the elements in the collection.</p>
-   </dd>
-
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLPropertyCollection-item"><a href="#dom-htmlpropertycollection-item">item</a></code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item"><a href="#dom-htmlcollection-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">collection</var>[<var title="">index</var>]</dt>
    <dt><var title="">collection</var>(<var title="">index</var>)</dt>
    <dd>
@@ -5464,13 +5418,18 @@
     <p>Returns null if <var title="">index</var> is out of range.</p>
    </dd>
 
-   <dt><var title="">propertyNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLPropertyCollection-item"><a href="#dom-htmlpropertycollection-item">namedItem</a></code>(<var title="">name</var>)</dt>
+   <dt><var title="">propertyNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLPropertyCollection-namedItem"><a href="#dom-htmlpropertycollection-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">collection</var>[<var title="">name</var>]</dt>
    <dt><var title="">collection</var>(<var title="">name</var>)</dt>
    <dd>
     <p>Returns a <code><a href="#propertynodelist">PropertyNodeList</a></code> object containing any elements that add a property named <var title="">name</var>.</p>
    </dd>
 
+   <dt><var title="">collection</var> . <code title="dom-HTMLPropertyCollection-names"><a href="#dom-htmlpropertycollection-names">names</a></code></dt>
+   <dd>
+    <p>Returns a <code>DOMStringList</code> with the <a href="#property-names">property names</a> of the elements in the collection.</p>
+   </dd>
+
    <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-values"><a href="#dom-propertynodelist-values">values</a></code></dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
@@ -5478,18 +5437,9 @@
 
   </dl><div class="impl">
 
-  <hr><p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to one less than
-  the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
-
-  <p>The <dfn id="dom-htmlpropertycollection-length" title="dom-HTMLPropertyCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
-  collection</a>.</p>
-
-  <p>The <dfn id="dom-htmlpropertycollection-item" title="dom-HTMLPropertyCollection-item"><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th node in the collection. If there is no <var title="">index</var>th node in the collection, then the method must
-  return null.</p>
+  <p>The object's <span>indices of the supported indexed
+  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
+  objects.</p>
 
   <p>The <span>names of the supported named properties</span> consist
   of the <a href="#property-names">property names</a> of all the elements

Received on Sunday, 25 October 2009 06:03:51 UTC