Skip to content

Commit

Permalink
[e] (0) Clarify toggle()'s return value.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8364

git-svn-id: http://svn.whatwg.org/webapps@4484 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 5, 2010
1 parent 3ea7de4 commit 904271c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion complete.html
Expand Up @@ -6130,7 +6130,10 @@ <h4 id=domtokenlist-0><span class=secno>2.7.3 </span>DOMTokenList</h4>

<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>
Expand Down
5 changes: 4 additions & 1 deletion index
Expand Up @@ -5965,7 +5965,10 @@ interface <dfn id=propertynodelist>PropertyNodeList</dfn> : <span>NodeList</span

<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>
Expand Down
5 changes: 4 additions & 1 deletion source
Expand Up @@ -5774,7 +5774,10 @@ interface <dfn>PropertyNodeList</dfn> : <span>NodeList</span> {

<dt><var title="">hastoken</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-toggle">toggle</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>SYNTAX_ERR</code> exception if <var title="">token</var> is empty.</p>
<p>Throws an <code>INVALID_CHARACTER_ERR</code> exception if <var title="">token</var> contains any spaces.</p>
</dd>
Expand Down

0 comments on commit 904271c

Please sign in to comment.