- From: poot <cvsmail@w3.org>
- Date: Tue, 5 Jan 2010 20:19:25 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Clarify toggle()'s return value. (whatwg r4484) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3583&r2=1.3584&f=h http://html5.org/tools/web-apps-tracker?from=4483&to=4484 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3583 retrieving revision 1.3584 diff -u -d -r1.3583 -r1.3584 --- Overview.html 5 Jan 2010 11:16:16 -0000 1.3583 +++ Overview.html 5 Jan 2010 11:19:15 -0000 1.3584 @@ -5458,7 +5458,10 @@ <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>Adds <var title="">token</var> if it is not present, or removes + it if it is. Returns true if <var title="">token</var> is now + present (it was added); returns false if it is not (it was + removed).</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>
Received on Tuesday, 5 January 2010 11:19:53 UTC