[html5] r1591 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon May 12 02:43:32 PDT 2008


Author: ianh
Date: 2008-05-12 02:43:31 -0700 (Mon, 12 May 2008)
New Revision: 1591

Modified:
   index
   source
Log:
[] (0) Make DOMTokenList not put spaces at starts of strings, even for toggle().

Modified: index
===================================================================
--- index	2008-05-12 09:29:57 UTC (rev 1590)
+++ index	2008-05-12 09:43:31 UTC (rev 1591)
@@ -3420,10 +3420,11 @@
     the <code><a href="#domtokenlist0">DOMTokenList</a></code> object's
     underlying string then stop the algorithm.
 
-   <li>Otherwise, if the last character of the <code><a
+   <li>Otherwise, if the <code><a
     href="#domtokenlist0">DOMTokenList</a></code> object's underlying string
-    is not a <a href="#space">space character</a>, then append a U+0020 SPACE
-    character to the end of that string.
+    is not the empty string and the last character of that string is not a <a
+    href="#space">space character</a>, then append a U+0020 SPACE character
+    to the end of that string.
 
    <li>Append the value of <var title="">token</var> to the end of the
     <code><a href="#domtokenlist0">DOMTokenList</a></code> object's
@@ -3463,10 +3464,11 @@
     string">remove the given <var title="">token</var> from the underlying
     string</a>, and stop the algorithm, returning false.
 
-   <li>Otherwise, if the last character of the <code><a
+   <li>Otherwise, if the <code><a
     href="#domtokenlist0">DOMTokenList</a></code> object's underlying string
-    is not a <a href="#space">space character</a>, then append a U+0020 SPACE
-    character to the end of that string.
+    is not the empty string and the last character of that string is not a <a
+    href="#space">space character</a>, then append a U+0020 SPACE character
+    to the end of that string.
 
    <li>Append the value of <var title="">token</var> to the end of the
     <code><a href="#domtokenlist0">DOMTokenList</a></code> object's

Modified: source
===================================================================
--- source	2008-05-12 09:29:57 UTC (rev 1590)
+++ source	2008-05-12 09:43:31 UTC (rev 1591)
@@ -1739,10 +1739,10 @@
    tokens in the <code>DOMTokenList</code> object's underlying string
    then stop the algorithm.</li>
 
-   <li>Otherwise, if the last character of the
-   <code>DOMTokenList</code> object's underlying string is not a
-   <span>space character</span>, then append a U+0020 SPACE character
-   to the end of that string.</li>
+   <li>Otherwise, if the <code>DOMTokenList</code> object's underlying
+   string is not the empty string and the last character of that
+   string is not a <span>space character</span>, then append a U+0020
+   SPACE character to the end of that string.</li>
 
    <li>Append the value of <var title="">token</var> to the end of the
    <code>DOMTokenList</code> object's underlying string.</li>
@@ -1787,10 +1787,10 @@
    <var title="">token</var> from the underlying string</span>, and
    stop the algorithm, returning false.</li>
 
-   <li>Otherwise, if the last character of the
-   <code>DOMTokenList</code> object's underlying string is not a
-   <span>space character</span>, then append a U+0020 SPACE character
-   to the end of that string.</li>
+   <li>Otherwise, if the <code>DOMTokenList</code> object's underlying
+   string is not the empty string and the last character of that
+   string is not a <span>space character</span>, then append a U+0020
+   SPACE character to the end of that string.</li>
 
    <li>Append the value of <var title="">token</var> to the end of the
    <code>DOMTokenList</code> object's underlying string.</li>




More information about the Commit-Watchers mailing list