[html5] r3371 - [] (0) Simplify getElementsByName() for compatibility reasons.

whatwg at whatwg.org whatwg at whatwg.org
Tue Jul 7 17:37:14 PDT 2009


Author: ianh
Date: 2009-07-07 17:37:12 -0700 (Tue, 07 Jul 2009)
New Revision: 3371

Modified:
   index
   source
Log:
[] (0) Simplify getElementsByName() for compatibility reasons.

Modified: index
===================================================================
--- index	2009-07-07 23:21:29 UTC (rev 3370)
+++ index	2009-07-08 00:37:12 UTC (rev 3371)
@@ -6882,12 +6882,7 @@
 
   <dl class=domintro><dt><var title="">collection</var> = <var title="">document</var> . <code title=dom-document-getElementsByName><a href=#dom-document-getelementsbyname>getElementsByName</a></code>(<var title="">name</var>)</dt>
    <dd>
-    <p>Returns a <code>NodeList</code> of <code><a href=#the-a-element>a</a></code>,
-    <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-button-element>button</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>, <code><a href=#the-input-element>input</a></code>, <code><a href=#the-map-element>map</a></code>,
-    <code><a href=#meta>meta</a></code>, <code><a href=#the-object-element>object</a></code>, <!-- not param, per IE8
-    --> <code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> elements in the
+    <p>Returns a <code>NodeList</code> of elements in the
     <code>Document</code> that have a <code title="">name</code>
     attribute with the value <var title="">name</var>.</p>
    </dd>
@@ -6905,14 +6900,9 @@
   </dl><div class=impl>
 
   <p>The <dfn id=dom-document-getelementsbyname title=dom-document-getElementsByName><code>getElementsByName(<var title="">name</var>)</code></dfn> method takes a string <var title="">name</var>, and must return a live <code>NodeList</code>
-  containing all the <code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>,
-  <code><a href=#the-button-element>button</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>,
-  <code><a href=#the-input-element>input</a></code>, <code><a href=#the-map-element>map</a></code>, <code><a href=#meta>meta</a></code>,
-  <code><a href=#the-object-element>object</a></code>, <!-- not param, per IE8 -->
-  <code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> elements in that
-  document that have a <code title="">name</code> attribute whose
-  value is equal to the <var title="">name</var> argument (in a
+  containing all the <a href=#html-elements>HTML elements</a> in that document that
+  have a <code title="">name</code> attribute whose value is equal to
+  the <var title="">name</var> argument (in a
   <a href=#case-sensitive>case-sensitive</a> manner), in <a href=#tree-order>tree order</a>.</p>
 
   <p>The <dfn id=dom-document-getelementsbyclassname title=dom-document-getElementsByClassName><code>getElementsByClassName(<var title="">classNames</var>)</code></dfn> method takes a string that

Modified: source
===================================================================
--- source	2009-07-07 23:21:29 UTC (rev 3370)
+++ source	2009-07-08 00:37:12 UTC (rev 3371)
@@ -6908,12 +6908,7 @@
 
    <dt><var title="">collection</var> = <var title="">document</var> . <code title="dom-document-getElementsByName">getElementsByName</code>(<var title="">name</var>)</dt>
    <dd>
-    <p>Returns a <code>NodeList</code> of <code>a</code>,
-    <code>applet</code>, <code>button</code>, <code>form</code>,
-    <code>frame</code>, <code>frameset</code>, <code>iframe</code>,
-    <code>img</code>, <code>input</code>, <code>map</code>,
-    <code>meta</code>, <code>object</code>, <!-- not param, per IE8
-    --> <code>select</code>, and <code>textarea</code> elements in the
+    <p>Returns a <code>NodeList</code> of elements in the
     <code>Document</code> that have a <code title="">name</code>
     attribute with the value <var title="">name</var>.</p>
    </dd>
@@ -6937,14 +6932,9 @@
   title="dom-document-getElementsByName"><code>getElementsByName(<var
   title="">name</var>)</code></dfn> method takes a string <var
   title="">name</var>, and must return a live <code>NodeList</code>
-  containing all the <code>a</code>, <code>applet</code>,
-  <code>button</code>, <code>form</code>, <code>frame</code>,
-  <code>frameset</code>, <code>iframe</code>, <code>img</code>,
-  <code>input</code>, <code>map</code>, <code>meta</code>,
-  <code>object</code>, <!-- not param, per IE8 -->
-  <code>select</code>, and <code>textarea</code> elements in that
-  document that have a <code title="">name</code> attribute whose
-  value is equal to the <var title="">name</var> argument (in a
+  containing all the <span>HTML elements</span> in that document that
+  have a <code title="">name</code> attribute whose value is equal to
+  the <var title="">name</var> argument (in a
   <span>case-sensitive</span> manner), in <span>tree order</span>.</p>
 
   <p>The <dfn




More information about the Commit-Watchers mailing list