hixie: Make DOMTokenList not remove duplicates. (whatwg r3479)

hixie: Make DOMTokenList not remove duplicates.  (whatwg r3479)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2681&r2=1.2682&f=h
http://html5.org/tools/web-apps-tracker?from=3478&to=3479

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2681
retrieving revision 1.2682
diff -u -d -r1.2681 -r1.2682
--- Overview.html 28 Jul 2009 00:04:12 -0000 1.2681
+++ Overview.html 28 Jul 2009 00:57:17 -0000 1.2682
@@ -5400,11 +5400,8 @@
   elements represented by the object, in <a href="#tree-order">tree order</a>.</p>
 
   </div><h4 id="domtokenlist"><span class="secno">2.8.3 </span>DOMTokenList</h4><p>The <code><a href="#domtokenlist-0">DOMTokenList</a></code> interface represents an interface
-  to an underlying string that consists of an <a href="#unordered-set-of-unique-space-separated-tokens">unordered set of
-  unique space-separated tokens</a>.<p class="note">While the order of the tokens in the underlying
-  string is not important, the <code><a href="#domtokenlist-0">DOMTokenList</a></code> interfaces
-  preserves the underlying order for consistency between
-  implementations.<p class="note"><code><a href="#domtokenlist-0">DOMTokenList</a></code> objects are always
+  to an underlying string that consists of a <a href="#set-of-space-separated-tokens">set of
+  space-separated tokens</a>.<p class="note"><code><a href="#domtokenlist-0">DOMTokenList</a></code> objects are always
   <a href="#case-sensitive">case-sensitive</a>, even when the underlying string might
   ordinarily be treated in a case-insensitive manner.<pre class="idl">[<a href="#dom-tokenlist-tostring" title="dom-tokenlist-toString">Stringifies</a>] interface <dfn id="domtokenlist-0">DOMTokenList</dfn> {
   readonly attribute unsigned long <a href="#dom-tokenlist-length" title="dom-tokenlist-length">length</a>;
@@ -5421,7 +5418,7 @@
    <dt><var title="">element</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-item"><a href="#dom-tokenlist-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">tokenlist</var>[<var title="">index</var>]</dt>
    <dd>
-    <p>Returns the token with index <var title="">index</var>. The tokens are returned in the order they are found in the underlying string, with duplicates removed.</p>
+    <p>Returns the token with index <var title="">index</var>. The tokens are returned in the order they are found in the underlying string.</p>
     <p>Returns null if <var title="">index</var> is out of range.</p>
    </dd>
 
@@ -5456,9 +5453,8 @@
   </dl><div class="impl">
 
   <p>The <dfn id="dom-tokenlist-length" title="dom-tokenlist-length"><code>length</code></dfn>
-  attribute must return the number of <em>unique</em> tokens that
-  result from <a href="#split-a-string-on-spaces" title="split a string on spaces">splitting the
-  underlying string on spaces</a>. This is the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>.</p>
+  attribute must return the number of tokens that result from <a href="#split-a-string-on-spaces" title="split a string on spaces">splitting the underlying string on
+  spaces</a>. This is the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>.</p>
 
   <p>The object's <span>indices of the supported indexed
   properties</span> are the numbers in the range zero to <span title=""><var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>-1</span>, unless the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var> is zero, in which case
@@ -5467,13 +5463,13 @@
   <p>The <dfn id="dom-tokenlist-item" title="dom-tokenlist-item"><code>item(<var title="">index</var>)</code></dfn> method must <a href="#split-a-string-on-spaces" title="split a
   string on spaces">split the underlying string on spaces</a>,
   preserving the order of the tokens as found in the underlying
-  string, remove instances of exact duplicates other than the first
-  instance in each case, and then return the <var title="">index</var>th item in this list. If <var title="">index</var> is equal to or greater than the number of
-  tokens, then the method must return null.</p>
+  string, and then return the <var title="">index</var>th item in this
+  list. If <var title="">index</var> is equal to or greater than the
+  number of tokens, then the method must return null.</p>
 
   <p class="example">For example, if the string is "<code title="">a b
-  a c</code>" then there are three tokens: the token with index 0 is
-  "<code title="">a</code>", the token with index 1 is "<code title="">b</code>", and the token with index 2 is "<code title="">c</code>".</p>
+  a c</code>" then there are four tokens: the token with index 0 is
+  "<code title="">a</code>", the token with index 1 is "<code title="">b</code>", the token with index 2 is "<code title="">a</code>", and the token with index 3 is "<code title="">c</code>".</p>
 
   <p>The <dfn id="dom-tokenlist-contains" title="dom-tokenlist-contains"><code>contains(<var title="">token</var>)</code></dfn> method must run the following
   algorithm:</p>

Received on Tuesday, 28 July 2009 00:58:12 UTC