- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 20 Jul 2009 08:50:57 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11860
Modified Files:
Overview.html
Log Message:
Define DOMTokenList's behaviour with empty string arguments. (whatwg r3452)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2576
retrieving revision 1.2577
diff -u -d -r1.2576 -r1.2577
--- Overview.html 19 Jul 2009 20:44:47 -0000 1.2576
+++ Overview.html 20 Jul 2009 08:50:54 -0000 1.2577
@@ -175,7 +175,7 @@
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
<!--ZZZ:-->
<!--<h2 class="no-num no-toc">W3C Working Draft 23 April 2009</h2>-->
- <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 19 July 2009</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-date-1-january-1970">Editor's Draft 20 July 2009</h2>
<!--:ZZZ-->
<dl><!-- ZZZ: update the month/day (twice), (un)comment out
<dt>This Version:</dt>
@@ -273,7 +273,7 @@
track.
<!--ZZZ:-->
<!--This specification is the 23 April 2009 Working Draft.-->
- This specification is the 19 July 2009 Editor's Draft.
+ This specification is the 20 July 2009 Editor's Draft.
<!--:ZZZ-->
</p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -5429,24 +5429,28 @@
<dt><var title="">hastoken</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-contains"><a href="#dom-tokenlist-contains">contains</a></code>(<var title="">token</var>)</dt>
<dd>
<p>Returns true if the <var title="">token</var> is present; false otherwise.</p>
+ <p>Throws a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception if <var title="">token</var> is empty.</p>
<p>Throws an <code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception if <var title="">token</var> contains any spaces.</p>
</dd>
<dt><var title="">tokenlist</var> . <code title="dom-tokenlist-add"><a href="#dom-tokenlist-add">add</a></code>(<var title="">token</var>)</dt>
<dd>
<p>Adds <var title="">token</var>, unless it is already present.</p>
+ <p>Throws a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception if <var title="">token</var> is empty.</p>
<p>Throws an <code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception if <var title="">token</var> contains any spaces.</p>
</dd>
<dt><var title="">tokenlist</var> . <code title="dom-tokenlist-remove"><a href="#dom-tokenlist-remove">remove</a></code>(<var title="">token</var>)</dt>
<dd>
<p>Removes <var title="">token</var> if it is present.</p>
+ <p>Throws a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception if <var title="">token</var> is empty.</p>
<p>Throws an <code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception if <var title="">token</var> contains any spaces.</p>
</dd>
<dt><var title="">hastoken</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-toggle"><a href="#dom-tokenlist-toggle">toggle</a></code>(<var title="">token</var>)</dt>
<dd>
<p>Adds <var title="">token</var> if it is not present, or removes it if it is.</p>
+ <p>Throws a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception if <var title="">token</var> is empty.</p>
<p>Throws an <code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception if <var title="">token</var> contains any spaces.</p>
</dd>
@@ -5475,7 +5479,11 @@
<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>
- <ol><li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
+ <ol><li>If the <var title="">token</var> argument is the empty string,
+ then raise a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception and stop the
+ algorithm.</li>
+
+ <li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
<code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
@@ -5493,7 +5501,11 @@
</ol><p>The <dfn id="dom-tokenlist-add" title="dom-tokenlist-add"><code>add(<var title="">token</var>)</code></dfn> method must run the following
algorithm:</p>
- <ol><li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
+ <ol><li>If the <var title="">token</var> argument is the empty string,
+ then raise a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception and stop the
+ algorithm.</li>
+
+ <li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
<code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
@@ -5517,7 +5529,11 @@
</ol><p>The <dfn id="dom-tokenlist-remove" title="dom-tokenlist-remove"><code>remove(<var title="">token</var>)</code></dfn> method must run the following
algorithm:</p>
- <ol><li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
+ <ol><li>If the <var title="">token</var> argument is the empty string,
+ then raise a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception and stop the
+ algorithm.</li>
+
+ <li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
<code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
@@ -5528,7 +5544,11 @@
</ol><p>The <dfn id="dom-tokenlist-toggle" title="dom-tokenlist-toggle"><code>toggle(<var title="">token</var>)</code></dfn> method must run the following
algorithm:</p>
- <ol><li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
+ <ol><li>If the <var title="">token</var> argument is the empty string,
+ then raise a <code><a href="#syntax_err">SYNTAX_ERR</a></code> exception and stop the
+ algorithm.</li>
+
+ <li>If the <var title="">token</var> argument contains any <a href="#space-character" title="space character">space characters</a>, then raise an
<code><a href="#invalid_character_err">INVALID_CHARACTER_ERR</a></code> exception and stop the
algorithm.</li>
@@ -65788,6 +65808,7 @@
Sunava Dutta,
Susan Borgrink,
Susan <!--G.--> Lesch,
+ Sylvain Pasche,
<span lang="tr" title="">Tantek Çelik</span>,
Ted Mielczarek,
Terrence Wood,
Received on Monday, 20 July 2009 08:51:14 UTC