W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2009

html5/spec Overview.html,1.3489,1.3490

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 27 Oct 2009 19:31:36 +0000
To: public-html-commits@w3.org
Message-Id: <E1N2rlY-0004yE-7a@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv19087

Modified Files:
	Overview.html 
Log Message:
Allow duplicate class names to be specified. (whatwg r4357)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3489
retrieving revision 1.3490
diff -u -d -r1.3489 -r1.3490
--- Overview.html	27 Oct 2009 19:27:56 -0000	1.3489
+++ Overview.html	27 Oct 2009 19:31:32 -0000	1.3490
@@ -6550,18 +6550,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
@@ -7245,14 +7245,14 @@
   to render correctly even in the absence of CSS (e.g. as interpreted
   by search engines).<h5 id="classes"><span class="secno">3.2.3.6 </span>The <dfn title="attr-class"><code>class</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have a
   <code title="attr-class"><a href="#classes">class</a></code> attribute specified.<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.<div class="impl">
+  <span>unordered set of space-separated tokens</span> representing
+  the various classes that the element belongs to.<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><p class="note">Assigning classes to an element affects class
   matching in selectors in CSS, the <code title="dom-document-getElementsByClassName"><a href="#dom-document-getelementsbyclassname">getElementsByClassName()</a></code>
Received on Tuesday, 27 October 2009 20:21:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 20:21:38 GMT