- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 17 Jan 2012 23:03:00 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv2289
Modified Files:
Overview.html
Log Message:
Update HTMLAllCollection.item(DOMString) to act like namedItem. (whatwg r6900)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5497
retrieving revision 1.5498
diff -u -d -r1.5497 -r1.5498
--- Overview.html 17 Jan 2012 22:14:01 -0000 1.5497
+++ Overview.html 17 Jan 2012 23:02:55 -0000 1.5498
@@ -7570,8 +7570,11 @@
<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="#htmlallcollection">HTMLAllCollection</a></code> object when there are
- multiple matching elements.<pre class="idl">interface <dfn id="htmlallcollection">HTMLAllCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
- // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>()
+ multiple matching elements, and that its <code title="dom-HTMLAllCollection-item">item()</code> method can be used
+ as a synonym for its <code title="dom-HTMLAllCollection-namedItem"><a href="#dom-htmlallcollection-nameditem">namedItem()</a></code>
+ method.<pre class="idl">interface <dfn id="htmlallcollection">HTMLAllCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
+ // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>(unsigned long index)
+ object? <a href="#dom-htmlallcollection-item-string" title="dom-HTMLAllCollection-item-string">item</a>(DOMString name);
legacycaller getter object? <a href="#dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem">namedItem</a>(DOMString name); // overrides inherited namedItem()
<a href="#htmlallcollection">HTMLAllCollection</a> <a href="#dom-htmlallcollection-tags" title="dom-HTMLAllCollection-tags">tags</a>(DOMString tagName);
};</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length">length</code></dt>
@@ -7586,6 +7589,8 @@
<p>Returns the item with index <var title="">index</var> from the collection. The items are sorted in <a href="#tree-order">tree order</a>.</p>
</dd>
+ <dt><var title="">element</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item-string"><a href="#dom-htmlallcollection-item-string">item</a></code>(<var title="">name</var>)</dt>
+ <dt><var title="">collection</var> = <var title="">collection</var> . <code title="dom-HTMLAllCollection-item-string"><a href="#dom-htmlallcollection-item-string">item</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>
@@ -7611,7 +7616,7 @@
<a href="#supported-property-names">supported property names</a> 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
+ <p>The <dfn id="dom-htmlallcollection-item-string" title="dom-HTMLAllCollection-item-string"><code>item(<var title="">name</var>)</code></dfn> and <dfn id="dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> methods must act according to the
following algorithm:</p>
<ol><li>
@@ -7627,10 +7632,10 @@
<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>, or
<code><a href="#the-object-element">object</a></code> elements with a <code title="">name</code>
- attribute equal to <var title="">key</var>, or,</li>
+ attribute equal to <var title="">name</var>, or,</li>
<li>elements with an <a href="#concept-id" title="concept-id">ID</a> equal to
- <var title="">key</var>.</li>
+ <var title="">name</var>.</li>
</ul></li>
Received on Tuesday, 17 January 2012 23:03:02 UTC