[html5] r4323 - [giow] (2) Make collections inherit from HTMLCollection Fixing http://www.w3.org [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Oct 24 23:16:35 PDT 2009


Author: ianh
Date: 2009-10-24 23:16:31 -0700 (Sat, 24 Oct 2009)
New Revision: 4323

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make collections inherit from HTMLCollection
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8035

Modified: complete.html
===================================================================
--- complete.html	2009-10-25 04:44:37 UTC (rev 4322)
+++ complete.html	2009-10-25 06:16:31 UTC (rev 4323)
@@ -4671,7 +4671,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>
@@ -5590,7 +5590,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>
@@ -5698,7 +5698,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
@@ -5757,19 +5757,18 @@
   returns an <code><a href=#htmlcollection>HTMLCollection</a></code> object when there are
   multiple matching elements.</p>
 
-  <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);
+  <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>
+  <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>
@@ -5777,8 +5776,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>
@@ -5799,29 +5798,11 @@
 
   </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 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-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 <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>
 
@@ -5873,22 +5854,21 @@
   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.</p>
 
-  <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);
+  <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>
+  <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>
@@ -5896,8 +5876,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>
@@ -5907,38 +5887,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 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 <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 <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
@@ -6007,10 +5972,10 @@
   <code><a href=#the-select-element>select</a></code> element and has attributes and methods that
   manipulate that element's descendants.</p>
 
-  <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);
+  <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);
@@ -6023,7 +5988,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>
@@ -6031,8 +5996,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>
@@ -6060,10 +6025,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
@@ -6087,15 +6050,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
@@ -6170,11 +6130,10 @@
   name-value pairs to a particular <a href=#concept-item title=concept-item>item</a> in the <a href=#microdata>microdata</a>
   model.</p>
 
-  <pre class=idl>interface <dfn id=htmlpropertycollection>HTMLPropertyCollection</dfn> {
-  readonly attribute unsigned long <a href=#dom-htmlpropertycollection-length title=dom-HTMLPropertyCollection-length>length</a>;
+  <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<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
@@ -6183,17 +6142,12 @@
   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>
+  <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>
@@ -6201,13 +6155,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>
@@ -6215,19 +6174,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 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 <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 <span>names of the supported named properties</span> consist
   of the <a href=#property-names>property names</a> of all the elements
   <a href=#represented-by-the-collection>represented by the collection</a>.</p>

Modified: index
===================================================================
--- index	2009-10-25 04:44:37 UTC (rev 4322)
+++ index	2009-10-25 06:16:31 UTC (rev 4323)
@@ -4481,7 +4481,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>
@@ -5400,7 +5400,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>
@@ -5508,7 +5508,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
@@ -5567,19 +5567,18 @@
   returns an <code><a href=#htmlcollection>HTMLCollection</a></code> object when there are
   multiple matching elements.</p>
 
-  <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);
+  <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>
+  <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>
@@ -5587,8 +5586,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>
@@ -5609,29 +5608,11 @@
 
   </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 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-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 <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>
 
@@ -5683,22 +5664,21 @@
   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.</p>
 
-  <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);
+  <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>
+  <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>
@@ -5706,8 +5686,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>
@@ -5717,38 +5697,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 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 <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 <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
@@ -5817,10 +5782,10 @@
   <code><a href=#the-select-element>select</a></code> element and has attributes and methods that
   manipulate that element's descendants.</p>
 
-  <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);
+  <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);
@@ -5833,7 +5798,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>
@@ -5841,8 +5806,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>
@@ -5870,10 +5835,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
@@ -5897,15 +5860,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
@@ -5980,11 +5940,10 @@
   name-value pairs to a particular <a href=#concept-item title=concept-item>item</a> in the <a href=#microdata>microdata</a>
   model.</p>
 
-  <pre class=idl>interface <dfn id=htmlpropertycollection>HTMLPropertyCollection</dfn> {
-  readonly attribute unsigned long <a href=#dom-htmlpropertycollection-length title=dom-HTMLPropertyCollection-length>length</a>;
+  <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<any> <dfn id=propertyvaluearray>PropertyValueArray</dfn>;
@@ -5993,17 +5952,12 @@
   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>
+  <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>
@@ -6011,13 +5965,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>
@@ -6025,19 +5984,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 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 <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 <span>names of the supported named properties</span> consist
   of the <a href=#property-names>property names</a> of all the elements
   <a href=#represented-by-the-collection>represented by the collection</a>.</p>

Modified: source
===================================================================
--- source	2009-10-25 04:44:37 UTC (rev 4322)
+++ source	2009-10-25 06:16:31 UTC (rev 4323)
@@ -4056,7 +4056,7 @@
    title="">output</var>, and abort these steps.</p></li>
 
    <li><p>If the character at <var title="">position</var> is a
-   <span>space character</span>:
+   <span>space character</span>:</p>
 
     <ol>
 
@@ -5108,7 +5108,7 @@
   <code>HTMLElement</code>, or an interface that descends from
   <code>HTMLElement</code>, then, on getting, it must run the
   following algorithm (stopping at the first point where a value is
-  returned):
+  returned):</p>
 
   <ol>
 
@@ -5229,8 +5229,6 @@
 
   <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 <span>represented by the collection</span>. If
@@ -5302,21 +5300,20 @@
   returns an <code>HTMLCollection</code> object when there are
   multiple matching elements.</p>
 
-  <pre class="idl">interface <dfn>HTMLAllCollection</dfn> {
-  readonly attribute unsigned long <span title="dom-HTMLAllCollection-length">length</span>;
-  caller getter Element <span title="dom-HTMLAllCollection-item">item</span>(in unsigned long index);
-  caller getter object <span title="dom-HTMLAllCollection-namedItem">namedItem</span>(in DOMString name);
+  <pre class="idl">interface <dfn>HTMLAllCollection</dfn> : <span>HTMLCollection</span> {
+  // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>()
+  caller getter object <span title="dom-HTMLAllCollection-namedItem">namedItem</span>(in DOMString name); // overrides inherited namedItem()
   <span>HTMLAllCollection</span> <span title="dom-HTMLAllCollection-tags">tags</span>(in DOMString tagName);
 };</pre>
 
   <dl class="domintro">
 
-   <dt><var title="">collection</var> . <code title="dom-HTMLAllCollection-length">length</code></dt>
+   <dt><var title="">collection</var> . <code title="dom-HTMLCollection-length">length</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">item</code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item">item</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>
@@ -5324,8 +5321,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">namedItem</code>(<var title="">name</var>)</dt>
-   <dt><var title="">collection</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-namedItem">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">collection</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-namedItem">namedItem</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>
@@ -5349,36 +5346,12 @@
 
   <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 <span>represented by the collection</span>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  properties</span> and <span>names of the supported named
+  properties</span> are as defined for <code>HTMLCollection</code>
+  objects.</p>
 
   <p>The <dfn
-  title="dom-HTMLAllCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <span>represented by the
-  collection</span>.</p>
-
-  <p>The <dfn 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</code>, <code>applet</code>, <code>area</code>,
-  <code>embed</code>, <code>form</code>, <code>frame</code>,
-  <code>frameset</code>, <code>iframe</code>, <code>img</code>, and
-  <code>object</code> element <span>represented by the
-  collection</span> with a <code title="">name</code> attribute, plus
-  the list of IDs that the elements <span>represented by the
-  collection</span> have.</p>
-
-  <p>The <dfn
   title="dom-HTMLAllCollection-namedItem"><code>namedItem(<var
   title="">key</var>)</code></dfn> method must act according to the
   following algorithm:</p>
@@ -5442,10 +5415,9 @@
   title="category-listed">listed</span> elements in <code>form</code>
   and <code>fieldset</code> elements.</p>
 
-  <pre class="idl">interface <dfn>HTMLFormControlsCollection</dfn> {
-  readonly attribute unsigned long <span title="dom-HTMLFormControlsCollection-length">length</span>;
-  caller getter <span>HTMLElement</span> <span title="dom-HTMLFormControlsCollection-item">item</span>(in unsigned long index);
-  caller getter object <span title="dom-HTMLFormControlsCollection-namedItem">namedItem</span>(in DOMString name);
+  <pre class="idl">interface <dfn>HTMLFormControlsCollection</dfn> : <span>HTMLCollection</span> {
+  // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>()
+  caller getter object <span title="dom-HTMLFormControlsCollection-namedItem">namedItem</span>(in DOMString name); // overrides inherited namedItem()
 };
 
 interface <dfn>RadioNodeList</dfn> : <span>NodeList</span> {
@@ -5454,12 +5426,12 @@
 
   <dl class="domintro">
 
-   <dt><var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-length">length</code></dt>
+   <dt><var title="">collection</var> . <code title="dom-HTMLCollection-length">length</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">item</code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item">item</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>
@@ -5467,8 +5439,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">namedItem</code>(<var title="">name</var>)</dt>
-   <dt><var title="">radioNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-item">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-namedItem">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">radioNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLFormControlsCollection-namedItem">namedItem</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>
@@ -5478,41 +5450,19 @@
    </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 <span>represented by the collection</span>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  properties</span> are as defined for <code>HTMLCollection</code>
+  objects.</p>
 
-  <p>The <dfn
-  title="dom-HTMLFormControlsCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <span>represented by the
-  collection</span>.</p>
-
-  <p>The <dfn
-  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 <span>names of the supported named properties</span> consist
   of the values of all the <code title="attr-id">id</code> and <code
   title="attr-fe-name">name</code> attributes of all the elements
@@ -5521,7 +5471,7 @@
   <p>The <dfn
   title="dom-HTMLFormControlsCollection-namedItem"><code>namedItem(<var
   title="">name</var>)</code></dfn> method must act according to the
-  following algorithm:
+  following algorithm:</p>
 
   <ol>
 
@@ -5613,10 +5563,10 @@
   <code>select</code> element and has attributes and methods that
   manipulate that element's descendants.</p>
 
-  <pre class="idl">interface <dfn>HTMLOptionsCollection</dfn> {
-           attribute unsigned long <span title="dom-HTMLOptionsCollection-length">length</span>;
-  caller getter <span>HTMLOptionElement</span> <span title="dom-HTMLOptionsCollection-item">item</span>(in unsigned long index);
-  caller getter object <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(in DOMString name);
+  <pre class="idl">interface <dfn>HTMLOptionsCollection</dfn> : <span>HTMLCollection</span> {
+  // inherits <span title="dom-HTMLCollection-item">item</span>()
+           attribute unsigned long <span title="dom-HTMLOptionsCollection-length">length</span>; // overrides inherited length
+  caller getter object <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(in DOMString name); // overrides inherited namedItem()
   void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in optional <span>HTMLElement</span> before);
   void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in long before);
   void <span title="dom-HTMLOptionsCollection-remove">remove</span>(in long index);
@@ -5631,7 +5581,7 @@
     <p>When set to a greater number, adds new blank <code>option</code> elements to that container.</p>
    </dd>
 
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-item">item</code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item">item</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>
@@ -5639,8 +5589,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">namedItem</code>(<var title="">name</var>)</dt>
-   <dt><var title="">nodeList</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-item">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-namedItem">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">nodeList</var> = <var title="">collection</var> . <code title="dom-HTMLOptionsCollection-namedItem">namedItem</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>
@@ -5671,10 +5621,8 @@
   <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 <span>represented by the collection</span>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  properties</span> are as defined for <code>HTMLCollection</code>
+  objects.</p>
 
   <p>On getting, the <dfn
   title="dom-HTMLOptionsCollection-length"><code>length</code></dfn>
@@ -5701,12 +5649,6 @@
   children to existing <code>optgroup</code> elements (though it can
   remove children from them).</p>
 
-  <p>The <dfn 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">id</code> and <code
   title="attr-option-name">name</code> attributes of all the elements
@@ -5715,7 +5657,7 @@
   <p>The <dfn
   title="dom-HTMLOptionsCollection-namedItem"><code>namedItem(<var
   title="">name</var>)</code></dfn> method must act according to the
-  following algorithm:
+  following algorithm:</p>
 
   <ol>
 
@@ -5825,11 +5767,10 @@
   title="concept-item">item</span> in the <span>microdata</span>
   model.</p>
 
-  <pre class="idl">interface <dfn>HTMLPropertyCollection</dfn> {
-  readonly attribute unsigned long <span title="dom-HTMLPropertyCollection-length">length</span>;
+  <pre class="idl">interface <dfn>HTMLPropertyCollection</dfn> : <span>HTMLCollection</span> {
+  // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>()
+  caller getter <span>PropertyNodeList</span> <span title="dom-HTMLPropertyCollection-namedItem">namedItem</span>(in DOMString name); // overrides inherited namedItem()
   readonly attribute <span>DOMStringList</span> <span title="dom-HTMLPropertyCollection-names">names</span>;
-  caller getter <span>HTMLElement</span> <span title="dom-HTMLPropertyCollection-item">item</span>(in unsigned long index);
-  caller getter <span>PropertyNodeList</span> <span title="dom-HTMLPropertyCollection-namedItem">namedItem</span>(in DOMString name);
 };
 
 typedef sequence<any> <dfn>PropertyValueArray</dfn>;
@@ -5840,17 +5781,12 @@
 
   <dl class="domintro">
 
-   <dt><var title="">collection</var> . <code title="dom-HTMLPropertyCollection-length">length</code></dt>
+   <dt><var title="">collection</var> . <code title="dom-HTMLCollection-length">length</code></dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
    </dd>
 
-   <dt><var title="">collection</var> . <code title="dom-HTMLPropertyCollection-names">names</code></dt>
-   <dd>
-    <p>Returns a <code>DOMStringList</code> with the <span>property names</span> of the elements in the collection.</p>
-   </dd>
-
-   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLPropertyCollection-item">item</code>(<var title="">index</var>)</dt>
+   <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLCollection-item">item</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>
@@ -5858,13 +5794,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">namedItem</code>(<var title="">name</var>)</dt>
+   <dt><var title="">propertyNodeList</var> = <var title="">collection</var> . <code title="dom-HTMLPropertyCollection-namedItem">namedItem</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>PropertyNodeList</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">names</code></dt>
+   <dd>
+    <p>Returns a <code>DOMStringList</code> with the <span>property names</span> of the elements in the collection.</p>
+   </dd>
+
    <dt><var title="">propertyNodeList</var> . <code title="dom-PropertyNodeList-values">values</code></dt>
    <dd>
     <p>Returns an array of the various values that the relevant elements have.</p>
@@ -5874,26 +5815,10 @@
 
   <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 <span>represented by the collection</span>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  properties</span> are as defined for <code>HTMLCollection</code>
+  objects.</p>
 
-  <p>The <dfn
-  title="dom-HTMLPropertyCollection-length"><code>length</code></dfn>
-  attribute must return the number of nodes <span>represented by the
-  collection</span>.</p>
-
-  <p>The <dfn
-  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 <span>names of the supported named properties</span> consist
   of the <span>property names</span> of all the elements
   <span>represented by the collection</span>.</p>




More information about the Commit-Watchers mailing list