[html5] r2658 - [e] (0) Define what is actually enumerated in collections, as per WebIDL.
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jan 13 04:11:45 PST 2009
Author: ianh
Date: 2009-01-13 04:11:44 -0800 (Tue, 13 Jan 2009)
New Revision: 2658
Modified:
index
source
Log:
[e] (0) Define what is actually enumerated in collections, as per WebIDL.
Modified: index
===================================================================
--- index 2009-01-13 11:56:32 UTC (rev 2657)
+++ index 2009-01-13 12:11:44 UTC (rev 2658)
@@ -5321,6 +5321,12 @@
[NameGetter] Element <a href=#dom-htmlcollection-nameditem title=dom-HTMLCollection-namedItem>namedItem</a>(in DOMString name);
};</pre>
+ <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 supported
+ properties.</p>
+
<p>The <dfn id=dom-htmlcollection-length title=dom-HTMLCollection-length><code>length</code></dfn>
attribute must return the number of nodes <a href=#represented-by-the-collection>represented by the
collection</a>.</p>
@@ -5328,6 +5334,16 @@
<p>The <dfn id=dom-htmlcollection-item title=dom-HTMLCollection-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>frame</code>,
+ <code>frameset</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-htmlcollection-nameditem title=dom-HTMLCollection-namedItem><code>namedItem(<var title="">key</var>)</code></dfn> method must return the first node
in the collection that matches the following requirements:</p>
@@ -5357,6 +5373,12 @@
[NameGetter] Object <a href=#dom-htmlformcontrolscollection-nameditem title=dom-HTMLFormControlsCollection-namedItem>namedItem</a>(in DOMString name);
};</pre>
+ <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 supported
+ properties.</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>
@@ -5364,6 +5386,10 @@
<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="">key</var>)</code></dfn>
method must act according to the following algorithm:
@@ -5402,6 +5428,12 @@
void <a href=#dom-htmloptionscollection-remove title=dom-HTMLOptionsCollection-remove>remove</a>(in long index);
};</pre>
+ <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 supported
+ properties.</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
collection</a>.</p>
@@ -5427,6 +5459,10 @@
<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="">key</var>)</code></dfn>
method must act according to the following algorithm:
Modified: source
===================================================================
--- source 2009-01-13 11:56:32 UTC (rev 2657)
+++ source 2009-01-13 12:11:44 UTC (rev 2658)
@@ -5153,6 +5153,12 @@
[NameGetter] Element <span title="dom-HTMLCollection-namedItem">namedItem</span>(in DOMString name);
};</pre>
+ <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 supported
+ properties.</p>
+
<p>The <dfn
title="dom-HTMLCollection-length"><code>length</code></dfn>
attribute must return the number of nodes <span>represented by the
@@ -5164,6 +5170,16 @@
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-HTMLCollection-namedItem"><code>namedItem(<var
title="">key</var>)</code></dfn> method must return the first node
@@ -5201,6 +5217,12 @@
[NameGetter] Object <span title="dom-HTMLFormControlsCollection-namedItem">namedItem</span>(in DOMString name);
};</pre>
+ <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 supported
+ properties.</p>
+
<p>The <dfn
title="dom-HTMLFormControlsCollection-length"><code>length</code></dfn>
attribute must return the number of nodes <span>represented by the
@@ -5213,6 +5235,11 @@
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
+ <span>represented by the collection</span>.</p>
+
<p>The <dfn
title="dom-HTMLFormControlsCollection-namedItem"><code>namedItem(<var title="">key</var>)</code></dfn>
method must act according to the following algorithm:
@@ -5268,6 +5295,12 @@
void <span title="dom-HTMLOptionsCollection-remove">remove</span>(in long index);
};</pre>
+ <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 supported
+ properties.</p>
+
<p>On getting, the <dfn
title="dom-HTMLOptionsCollection-length"><code>length</code></dfn>
attribute must return the number of nodes <span>represented by the
@@ -5299,6 +5332,11 @@
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
+ <span>represented by the collection</span>.</p>
+
<p>The <dfn
title="dom-HTMLOptionsCollection-namedItem"><code>namedItem(<var title="">key</var>)</code></dfn>
method must act according to the following algorithm:
More information about the Commit-Watchers
mailing list