[html5] r4357 - [ac] (0) Allow duplicate class names to be specified. Fixing http://www.w3.org/B [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 27 12:31:33 PDT 2009


Author: ianh
Date: 2009-10-27 12:31:29 -0700 (Tue, 27 Oct 2009)
New Revision: 4357

Modified:
   complete.html
   index
   source
Log:
[ac] (0) Allow duplicate class names to be specified.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8060

Modified: complete.html
===================================================================
--- complete.html	2009-10-27 19:27:52 UTC (rev 4356)
+++ complete.html	2009-10-27 19:31:29 UTC (rev 4357)
@@ -7407,18 +7407,18 @@
   <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
-  contains an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated
-  tokens</a> representing classes. When called, the method must
-  return a live <code>NodeList</code> object containing all the
-  elements in the document, in <a href=#tree-order>tree order</a>, that have all
-  the classes specified in that argument, having obtained the classes
-  by <a href=#split-a-string-on-spaces title="split a string on spaces">splitting a string on
-  spaces</a>. If there are no tokens specified in the argument,
-  then the method must return an empty <code>NodeList</code>. If the
-  document is in <a href=#quirks-mode>quirks mode</a>, then the comparisons for
-  the classes must be done in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
-  manner, otherwise, the comparisons must be done in a
-  <a href=#case-sensitive>case-sensitive</a> manner.</p>
+  contains an <span>unordered set of space-separated tokens</span>
+  representing classes. When called, the method must return a live
+  <code>NodeList</code> object containing all the elements in the
+  document, in <a href=#tree-order>tree order</a>, that have all the classes
+  specified in that argument, having obtained the classes by <a href=#split-a-string-on-spaces title="split a string on spaces">splitting a string on
+  spaces</a>. (Duplicates are ignored.) If there are no tokens
+  specified in the argument, then the method must return an empty
+  <code>NodeList</code>. If the document is in <a href=#quirks-mode>quirks
+  mode</a>, then the comparisons for the classes must be done in an
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner, otherwise, the
+  comparisons must be done in a <a href=#case-sensitive>case-sensitive</a>
+  manner.</p>
 
   <p>The <dfn id=dom-getelementsbyclassname title=dom-getElementsByClassName><code>getElementsByClassName(<var title="">classNames</var>)</code></dfn> method on the
   <code><a href=#htmlelement>HTMLElement</a></code> interface must return a live
@@ -8251,8 +8251,8 @@
   <code title=attr-class><a href=#classes>class</a></code> attribute specified.</p>
 
   <p>The attribute, if specified, must have a value that is an
-  <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated tokens</a>
-  representing the various classes that the element belongs to.</p>
+  <span>unordered set of space-separated tokens</span> representing
+  the various classes that the element belongs to.</p>
 
   <div class=impl>
 
@@ -8260,7 +8260,7 @@
   element</a> has assigned to it consists of all the classes
   returned when the value of the <code title=attr-class><a href=#classes>class</a></code>
   attribute is <a href=#split-a-string-on-spaces title="split a string on spaces">split on
-  spaces</a>.</p>
+  spaces</a>. (Duplicates are ignored.)</p>
 
   </div>
 

Modified: index
===================================================================
--- index	2009-10-27 19:27:52 UTC (rev 4356)
+++ index	2009-10-27 19:31:29 UTC (rev 4357)
@@ -7225,18 +7225,18 @@
   <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
-  contains an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated
-  tokens</a> representing classes. When called, the method must
-  return a live <code>NodeList</code> object containing all the
-  elements in the document, in <a href=#tree-order>tree order</a>, that have all
-  the classes specified in that argument, having obtained the classes
-  by <a href=#split-a-string-on-spaces title="split a string on spaces">splitting a string on
-  spaces</a>. If there are no tokens specified in the argument,
-  then the method must return an empty <code>NodeList</code>. If the
-  document is in <a href=#quirks-mode>quirks mode</a>, then the comparisons for
-  the classes must be done in an <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
-  manner, otherwise, the comparisons must be done in a
-  <a href=#case-sensitive>case-sensitive</a> manner.</p>
+  contains an <span>unordered set of space-separated tokens</span>
+  representing classes. When called, the method must return a live
+  <code>NodeList</code> object containing all the elements in the
+  document, in <a href=#tree-order>tree order</a>, that have all the classes
+  specified in that argument, having obtained the classes by <a href=#split-a-string-on-spaces title="split a string on spaces">splitting a string on
+  spaces</a>. (Duplicates are ignored.) If there are no tokens
+  specified in the argument, then the method must return an empty
+  <code>NodeList</code>. If the document is in <a href=#quirks-mode>quirks
+  mode</a>, then the comparisons for the classes must be done in an
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a> manner, otherwise, the
+  comparisons must be done in a <a href=#case-sensitive>case-sensitive</a>
+  manner.</p>
 
   <p>The <dfn id=dom-getelementsbyclassname title=dom-getElementsByClassName><code>getElementsByClassName(<var title="">classNames</var>)</code></dfn> method on the
   <code><a href=#htmlelement>HTMLElement</a></code> interface must return a live
@@ -8069,8 +8069,8 @@
   <code title=attr-class><a href=#classes>class</a></code> attribute specified.</p>
 
   <p>The attribute, if specified, must have a value that is an
-  <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated tokens</a>
-  representing the various classes that the element belongs to.</p>
+  <span>unordered set of space-separated tokens</span> representing
+  the various classes that the element belongs to.</p>
 
   <div class=impl>
 
@@ -8078,7 +8078,7 @@
   element</a> has assigned to it consists of all the classes
   returned when the value of the <code title=attr-class><a href=#classes>class</a></code>
   attribute is <a href=#split-a-string-on-spaces title="split a string on spaces">split on
-  spaces</a>.</p>
+  spaces</a>. (Duplicates are ignored.)</p>
 
   </div>
 

Modified: source
===================================================================
--- source	2009-10-27 19:27:52 UTC (rev 4356)
+++ source	2009-10-27 19:31:29 UTC (rev 4357)
@@ -7266,18 +7266,19 @@
   <p>The <dfn
   title="dom-document-getElementsByClassName"><code>getElementsByClassName(<var
   title="">classNames</var>)</code></dfn> method takes a string that
-  contains an <span>unordered set of unique space-separated
-  tokens</span> representing classes. When called, the method must
-  return a live <code>NodeList</code> object containing all the
-  elements in the document, in <span>tree order</span>, that have all
-  the classes specified in that argument, having obtained the classes
-  by <span title="split a string on spaces">splitting a string on
-  spaces</span>. If there are no tokens specified in the argument,
-  then the method must return an empty <code>NodeList</code>. If the
-  document is in <span>quirks mode</span>, then the comparisons for
-  the classes must be done in an <span>ASCII case-insensitive</span>
-  manner, otherwise, the comparisons must be done in a
-  <span>case-sensitive</span> manner.</p>
+  contains an <span>unordered set of space-separated tokens</span>
+  representing classes. When called, the method must return a live
+  <code>NodeList</code> object containing all the elements in the
+  document, in <span>tree order</span>, that have all the classes
+  specified in that argument, having obtained the classes by <span
+  title="split a string on spaces">splitting a string on
+  spaces</span>. (Duplicates are ignored.) If there are no tokens
+  specified in the argument, then the method must return an empty
+  <code>NodeList</code>. If the document is in <span>quirks
+  mode</span>, then the comparisons for the classes must be done in an
+  <span>ASCII case-insensitive</span> manner, otherwise, the
+  comparisons must be done in a <span>case-sensitive</span>
+  manner.</p>
 
   <p>The <dfn
   title="dom-getElementsByClassName"><code>getElementsByClassName(<var
@@ -8194,8 +8195,8 @@
   <code title="attr-class">class</code> attribute specified.</p>
 
   <p>The attribute, if specified, must have a value that is an
-  <span>unordered set of unique space-separated tokens</span>
-  representing the various classes that the element belongs to.</p>
+  <span>unordered set of space-separated tokens</span> representing
+  the various classes that the element belongs to.</p>
 
   <div class="impl">
 
@@ -8203,7 +8204,7 @@
   element</span> has assigned to it consists of all the classes
   returned when the value of the <code title="attr-class">class</code>
   attribute is <span title="split a string on spaces">split on
-  spaces</span>.</p>
+  spaces</span>. (Duplicates are ignored.)</p>
 
   </div>
 




More information about the Commit-Watchers mailing list