[html5] r5624 - [giow] (2) remove form.item() and form.namedItem() since 2/3 browsers I tested d [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Oct 14 01:26:37 PDT 2010


Author: ianh
Date: 2010-10-14 01:26:36 -0700 (Thu, 14 Oct 2010)
New Revision: 5624

Modified:
   complete.html
   index
   source
Log:
[giow] (2) remove form.item() and form.namedItem() since 2/3 browsers I tested don't have it and removing them seems like a win.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10990

Modified: complete.html
===================================================================
--- complete.html	2010-10-14 08:08:59 UTC (rev 5623)
+++ complete.html	2010-10-14 08:26:36 UTC (rev 5624)
@@ -37363,8 +37363,8 @@
 
   readonly attribute <a href=#htmlformcontrolscollection>HTMLFormControlsCollection</a> <a href=#dom-form-elements title=dom-form-elements>elements</a>;
   readonly attribute long <a href=#dom-form-length title=dom-form-length>length</a>;
-  caller getter any <a href=#dom-form-item title=dom-form-item>item</a>(in unsigned long index);
-  caller getter any <a href=#dom-form-nameditem title=dom-form-namedItem>namedItem</a>(in DOMString name);
+  caller <a href=#dom-form-item title=dom-form-item>getter</a> any (in unsigned long index);
+  caller <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> any (in DOMString name);
 
   void <a href=#dom-form-submit title=dom-form-submit>submit</a>();
   void <a href=#dom-form-reset title=dom-form-reset>reset</a>();
@@ -37428,7 +37428,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title=dom-form-item><a href=#dom-form-item>item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">form</var>[<var title="">index</var>]</dt>
    <dt><var title="">form</var>(<var title="">index</var>)</dt>
 
@@ -37439,7 +37438,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title=dom-form-namedItem><a href=#dom-form-nameditem>namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">form</var>[<var title="">name</var>]</dt>
    <dt><var title="">form</var>(<var title="">name</var>)</dt>
 
@@ -37532,9 +37530,10 @@
   the indices supported by the object returned by the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> attribute at that
   instant.</p>
 
-  <p>The <dfn id=dom-form-item title=dom-form-item><code>item(<var title="">index</var>)</code></dfn> method must return the value
-  returned by the method of the same name on the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> collection, when invoked
-  with the same argument.</p>
+  <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-item title=dom-form-item>indexed for indexed property retrieval</dfn>,
+  the user agent must return the value returned by the <code title=dom-HTMLFormControlsCollection-item>item</code> method on
+  the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> collection, when
+  invoked with the given index as its argument.</p>
 
   <p>Each <code><a href=#the-form-element>form</a></code> element has a mapping of names to elements
   called the <dfn id=past-names-map>past names map</dfn>. It is used to persist names of
@@ -37544,8 +37543,8 @@
   names currently supported by the object returned by the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> attribute, and the names
   currently in the <a href=#past-names-map>past names map</a>.</p>
 
-  <p>The <dfn id=dom-form-nameditem title=dom-form-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method, when called, must run the
-  following steps:</p>
+  <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-nameditem title=dom-form-namedItem>indexed for named property
+  retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol><li>
 

Modified: index
===================================================================
--- index	2010-10-14 08:08:59 UTC (rev 5623)
+++ index	2010-10-14 08:26:36 UTC (rev 5624)
@@ -37343,8 +37343,8 @@
 
   readonly attribute <a href=#htmlformcontrolscollection>HTMLFormControlsCollection</a> <a href=#dom-form-elements title=dom-form-elements>elements</a>;
   readonly attribute long <a href=#dom-form-length title=dom-form-length>length</a>;
-  caller getter any <a href=#dom-form-item title=dom-form-item>item</a>(in unsigned long index);
-  caller getter any <a href=#dom-form-nameditem title=dom-form-namedItem>namedItem</a>(in DOMString name);
+  caller <a href=#dom-form-item title=dom-form-item>getter</a> any (in unsigned long index);
+  caller <a href=#dom-form-nameditem title=dom-form-namedItem>getter</a> any (in DOMString name);
 
   void <a href=#dom-form-submit title=dom-form-submit>submit</a>();
   void <a href=#dom-form-reset title=dom-form-reset>reset</a>();
@@ -37408,7 +37408,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title=dom-form-item><a href=#dom-form-item>item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">form</var>[<var title="">index</var>]</dt>
    <dt><var title="">form</var>(<var title="">index</var>)</dt>
 
@@ -37419,7 +37418,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title=dom-form-namedItem><a href=#dom-form-nameditem>namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">form</var>[<var title="">name</var>]</dt>
    <dt><var title="">form</var>(<var title="">name</var>)</dt>
 
@@ -37512,9 +37510,10 @@
   the indices supported by the object returned by the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> attribute at that
   instant.</p>
 
-  <p>The <dfn id=dom-form-item title=dom-form-item><code>item(<var title="">index</var>)</code></dfn> method must return the value
-  returned by the method of the same name on the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> collection, when invoked
-  with the same argument.</p>
+  <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-item title=dom-form-item>indexed for indexed property retrieval</dfn>,
+  the user agent must return the value returned by the <code title=dom-HTMLFormControlsCollection-item>item</code> method on
+  the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> collection, when
+  invoked with the given index as its argument.</p>
 
   <p>Each <code><a href=#the-form-element>form</a></code> element has a mapping of names to elements
   called the <dfn id=past-names-map>past names map</dfn>. It is used to persist names of
@@ -37524,8 +37523,8 @@
   names currently supported by the object returned by the <code title=dom-form-elements><a href=#dom-form-elements>elements</a></code> attribute, and the names
   currently in the <a href=#past-names-map>past names map</a>.</p>
 
-  <p>The <dfn id=dom-form-nameditem title=dom-form-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method, when called, must run the
-  following steps:</p>
+  <p>When a <code><a href=#the-form-element>form</a></code> element is <dfn id=dom-form-nameditem title=dom-form-namedItem>indexed for named property
+  retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol><li>
 

Modified: source
===================================================================
--- source	2010-10-14 08:08:59 UTC (rev 5623)
+++ source	2010-10-14 08:26:36 UTC (rev 5624)
@@ -41572,8 +41572,8 @@
 
   readonly attribute <span>HTMLFormControlsCollection</span> <span title="dom-form-elements">elements</span>;
   readonly attribute long <span title="dom-form-length">length</span>;
-  caller getter any <span title="dom-form-item">item</span>(in unsigned long index);
-  caller getter any <span title="dom-form-namedItem">namedItem</span>(in DOMString name);
+  caller <span title="dom-form-item">getter</span> any (in unsigned long index);
+  caller <span title="dom-form-namedItem">getter</span> any (in DOMString name);
 
   void <span title="dom-form-submit">submit</span>();
   void <span title="dom-form-reset">reset</span>();
@@ -41655,7 +41655,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title="dom-form-item">item</code>(<var title="">index</var>)</dt>
    <dt><var title="">form</var>[<var title="">index</var>]</dt>
    <dt><var title="">form</var>(<var title="">index</var>)</dt>
 
@@ -41666,7 +41665,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title="dom-form-namedItem">namedItem</code>(<var title="">name</var>)</dt>
    <dt><var title="">form</var>[<var title="">name</var>]</dt>
    <dt><var title="">form</var>(<var title="">name</var>)</dt>
 
@@ -41775,11 +41773,12 @@
   title="dom-form-elements">elements</code> attribute at that
   instant.</p>
 
-  <p>The <dfn title="dom-form-item"><code>item(<var
-  title="">index</var>)</code></dfn> method must return the value
-  returned by the method of the same name on the <code
-  title="dom-form-elements">elements</code> collection, when invoked
-  with the same argument.</p>
+  <p>When a <code>form</code> element is <dfn
+  title="dom-form-item">indexed for indexed property retrieval</dfn>,
+  the user agent must return the value returned by the <code
+  title="dom-HTMLFormControlsCollection-item">item</code> method on
+  the <code title="dom-form-elements">elements</code> collection, when
+  invoked with the given index as its argument.</p>
 
   <p>Each <code>form</code> element has a mapping of names to elements
   called the <dfn>past names map</dfn>. It is used to persist names of
@@ -41790,9 +41789,9 @@
   title="dom-form-elements">elements</code> attribute, and the names
   currently in the <span>past names map</span>.</p>
 
-  <p>The <dfn title="dom-form-namedItem"><code>namedItem(<var
-  title="">name</var>)</code></dfn> method, when called, must run the
-  following steps:</p>
+  <p>When a <code>form</code> element is <dfn
+  title="dom-form-namedItem">indexed for named property
+  retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol>
 




More information about the Commit-Watchers mailing list