Skip to content
Permalink
Browse files

[ac] (0) Allow duplicate class names to be specified.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8060

git-svn-id: http://svn.whatwg.org/webapps@4357 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Oct 27, 2009
1 parent 723d767 commit bd165e8202f09e0b0a1815089c65a765355fc86e
Showing with 46 additions and 45 deletions.
  1. +15 −15 complete.html
  2. +15 −15 index
  3. +16 −15 source
@@ -7407,18 +7407,18 @@ <h4 id=dom-tree-accessors><span class=secno>3.1.4 </span><dfn>DOM tree accessors
<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,16 +8251,16 @@ <h5 id=classes><span class=secno>3.2.3.6 </span>The <dfn title=attr-class><code>
<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>

<p>The classes that an <a href=#html-elements title="HTML elements">HTML
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>

30 index
@@ -7225,18 +7225,18 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
<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,16 +8069,16 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre>
<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>

<p>The classes that an <a href=#html-elements title="HTML elements">HTML
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>

31 source
@@ -7266,18 +7266,19 @@ interface <dfn>HTMLDocument</dfn> {
<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,16 +8195,16 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre>
<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">

<p>The classes that an <span title="HTML elements">HTML
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>

0 comments on commit bd165e8

Please sign in to comment.
You can’t perform that action at this time.