[html5] r6328 - [e] (0) Move DOMTokenList to DOM Core
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jul 26 16:44:39 PDT 2011
Author: ianh
Date: 2011-07-26 16:44:38 -0700 (Tue, 26 Jul 2011)
New Revision: 6328
Modified:
complete.html
index
source
Log:
[e] (0) Move DOMTokenList to DOM Core
Modified: complete.html
===================================================================
--- complete.html 2011-07-26 23:32:35 UTC (rev 6327)
+++ complete.html 2011-07-26 23:44:38 UTC (rev 6328)
@@ -374,14 +374,12 @@
<li><a href=#htmlformcontrolscollection-0><span class=secno>2.8.2.2 </span>HTMLFormControlsCollection</a></li>
<li><a href=#htmloptionscollection-0><span class=secno>2.8.2.3 </span>HTMLOptionsCollection</a></li>
<li><a href=#htmlpropertiescollection-0><span class=secno>2.8.2.4 </span>HTMLPropertiesCollection</a></ol></li>
- <li><a href=#domtokenlist-0><span class=secno>2.8.3 </span>DOMTokenList</a></li>
- <li><a href=#domsettabletokenlist-0><span class=secno>2.8.4 </span>DOMSettableTokenList</a></li>
- <li><a href=#domstringmap-0><span class=secno>2.8.5 </span>DOMStringMap</a></li>
- <li><a href=#domelementmap-0><span class=secno>2.8.6 </span>DOMElementMap</a></li>
- <li><a href=#transferable-objects><span class=secno>2.8.7 </span>Transferable objects</a></li>
- <li><a href=#safe-passing-of-structured-data><span class=secno>2.8.8 </span>Safe passing of structured data</a></li>
- <li><a href=#dom-feature-strings><span class=secno>2.8.9 </span>DOM feature strings</a></li>
- <li><a href=#garbage-collection><span class=secno>2.8.10 </span>Garbage collection</a></ol></li>
+ <li><a href=#domstringmap-0><span class=secno>2.8.3 </span>DOMStringMap</a></li>
+ <li><a href=#domelementmap-0><span class=secno>2.8.4 </span>DOMElementMap</a></li>
+ <li><a href=#transferable-objects><span class=secno>2.8.5 </span>Transferable objects</a></li>
+ <li><a href=#safe-passing-of-structured-data><span class=secno>2.8.6 </span>Safe passing of structured data</a></li>
+ <li><a href=#dom-feature-strings><span class=secno>2.8.7 </span>DOM feature strings</a></li>
+ <li><a href=#garbage-collection><span class=secno>2.8.8 </span>Garbage collection</a></ol></li>
<li><a href=#namespaces><span class=secno>2.9 </span>Namespaces</a></ol></li>
<li><a href=#dom><span class=secno>3 </span>Semantics, structure, and APIs of HTML documents</a>
<ol>
@@ -3521,6 +3519,9 @@
<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface, and the terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn></li>
+ <li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface</li>
+ <li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface</li>
+
<li><dfn id=dom-domimplementation-createdocument title=dom-DOMImplementation-createDocument><code>createDocument()</code></dfn> method</li>
<li><dfn id=dom-document-createelement title=dom-Document-createElement><code>createElement()</code></dfn> method</li>
<li><dfn id=dom-document-createelementns title=dom-Document-createElementNS><code>createElementNS()</code></dfn> method</li>
@@ -7839,10 +7840,10 @@
<div class=example>
- <p>If an element with no attributes has its <code title=dom-tokenlist-remove><a href=#dom-tokenlist-remove>element.classList.remove()</a></code>
+ <p>If an element with no attributes has its <code title=dom-tokenlist-remove>element.classList.remove()</code>
method invoked, the underlying string won't be changed, since the
result of removing any token from the empty string is still the
- empty string. However, if the <code title=dom-tokenlist-add><a href=#dom-tokenlist-add>element.classList.add()</a></code> method is
+ empty string. However, if the <code title=dom-tokenlist-add>element.classList.add()</code> method is
then invoked, a <code title=attr-class><a href=#classes>class</a></code> attribute
will be added to the element with the value of the token to be
added.</p>
@@ -8369,222 +8370,9 @@
<!--MD-->
- <h4 id=domtokenlist-0><span class=secno>2.8.3 </span>DOMTokenList</h4>
- <p>The <code><a href=#domtokenlist>DOMTokenList</a></code> interface represents an interface
- to an underlying string that consists of a <a href=#set-of-space-separated-tokens>set of
- space-separated tokens</a>.</p>
+ <h4 id=domstringmap-0><span class=secno>2.8.3 </span>DOMStringMap</h4>
- <p class=note><code><a href=#domtokenlist>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.</p>
-
- <pre class=idl>interface <dfn id=domtokenlist>DOMTokenList</dfn> {
- readonly attribute unsigned long <a href=#dom-tokenlist-length title=dom-tokenlist-length>length</a>;
- getter DOMString? <a href=#dom-tokenlist-item title=dom-tokenlist-item>item</a>(in unsigned long index);
- boolean <a href=#dom-tokenlist-contains title=dom-tokenlist-contains>contains</a>(in DOMString token);
- void <a href=#dom-tokenlist-add title=dom-tokenlist-add>add</a>(in DOMString token);
- void <a href=#dom-tokenlist-remove title=dom-tokenlist-remove>remove</a>(in DOMString token);
- boolean <a href=#dom-tokenlist-toggle title=dom-tokenlist-toggle>toggle</a>(in DOMString token);
- <a href=#dom-tokenlist-tostring title=dom-tokenlist-toString>stringifier</a> DOMString ();
-};</pre>
-
- <dl class=domintro><dt><var title="">tokenlist</var> . <code title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></code></dt>
- <dd>
- <p>Returns the number of tokens in the string.</p>
- </dd>
-
- <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.</p>
- </dd>
-
- <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. 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>
-
- </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 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 <a href=#supported-property-indices>supported property indices</a> 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
- there are no <a href=#supported-property-indices>supported property indices</a>.</p>
-
- <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, 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 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>
-
- <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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the token indicated by <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then return
- true and stop this algorithm.</li>
-
- <li>Otherwise, return false.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then stop the
- algorithm.</li>
-
- <li>Otherwise, if the <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying
- string is not the empty string and the last character of that
- string is not a <a href=#space-character>space character</a>, 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><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#remove-a-token-from-a-string title="remove a token from a string">remove
- the given <var title="">token</var> from the underlying
- string</a>.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then <a href=#remove-a-token-from-a-string title="remove a token from a string">remove the given <var title="">token</var> from the underlying string</a> and stop the
- algorithm, returning false.</li>
-
- <li>Otherwise, if the <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying
- string is not the empty string and the last character of that
- string is not a <a href=#space-character>space character</a>, 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><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>Return true.</li>
-
- </ol><p>A <code><a href=#domtokenlist>DOMTokenList</a></code> object must <dfn id=dom-tokenlist-tostring title=dom-tokenlist-toString>stringify</dfn> to the value of the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</p>
-
- </div>
-
-
- <h4 id=domsettabletokenlist-0><span class=secno>2.8.4 </span>DOMSettableTokenList</h4>
-
- <p>The <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code> interface is the same as the
- <code><a href=#domtokenlist>DOMTokenList</a></code> interface, except that it allows the
- underlying string to be directly changed.</p>
-
- <pre class=idl>interface <dfn id=domsettabletokenlist>DOMSettableTokenList</dfn> : <a href=#domtokenlist>DOMTokenList</a> {
- attribute DOMString <a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>;
-};</pre>
-
- <dl class=domintro><dt><var title="">tokenlist</var> . <code title=dom-DOMSettableTokenList-value><a href=#dom-domsettabletokenlist-value>value</a></code></dt>
- <dd>
- <p>Returns the underlying string.</p>
- <p>Can be set, to change the underlying string.</p>
- </dd>
-
- </dl><div class=impl>
-
- <p>An object implementing the <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>
- interface must act as defined for the <code><a href=#domtokenlist>DOMTokenList</a></code>
- interface, except for the <code title=dom-DOMSettableTokenList-value><a href=#dom-domsettabletokenlist-value>value</a></code> attribute defined
- here.</p>
-
- <p>The <dfn id=dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value><code>value</code></dfn>
- attribute must return the underlying string on getting, and must
- replace the underlying string with the new value on setting.</p>
-
- </div>
-
-
- <h4 id=domstringmap-0><span class=secno>2.8.5 </span>DOMStringMap</h4>
-
<p>The <code><a href=#domstringmap>DOMStringMap</a></code> interface represents a set of
name-value pairs. It exposes these using the scripting language's
native mechanisms for property access.</p>
@@ -8667,7 +8455,7 @@
<!--CSSREF-->
- <h4 id=domelementmap-0><span class=secno>2.8.6 </span>DOMElementMap</h4>
+ <h4 id=domelementmap-0><span class=secno>2.8.4 </span>DOMElementMap</h4>
<p>The <code><a href=#domelementmap>DOMElementMap</a></code> interface represents a set of
name-element mappings. It exposes these using the scripting
@@ -8717,7 +8505,7 @@
- <h4 id=transferable-objects><span class=secno>2.8.7 </span>Transferable objects</h4>
+ <h4 id=transferable-objects><span class=secno>2.8.5 </span>Transferable objects</h4>
<p>Some objects support being copied and closed in one operation.
This is called <i>transferring</i> the object, and is used in
@@ -8744,7 +8532,7 @@
<!--<li><code>ArrayBuffer</code>-->
</ul><div class=impl>
- <h4 id=safe-passing-of-structured-data><span class=secno>2.8.8 </span>Safe passing of structured data</h4>
+ <h4 id=safe-passing-of-structured-data><span class=secno>2.8.6 </span>Safe passing of structured data</h4>
<p>When a user agent is required to obtain a <dfn id=structured-clone>structured
clone</dfn> of a value, optionally with a <i>transfer map</i>, it
@@ -8924,7 +8712,7 @@
</div>
- <h4 id=dom-feature-strings><span class=secno>2.8.9 </span>DOM feature strings</h4>
+ <h4 id=dom-feature-strings><span class=secno>2.8.7 </span>DOM feature strings</h4>
<p>DOM3 Core defines mechanisms for checking for interface support,
and for obtaining implementations of interfaces, using <a href=http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMFeatures>feature
@@ -8948,7 +8736,7 @@
<div class=impl>
- <h4 id=garbage-collection><span class=secno>2.8.10 </span>Garbage collection</h4>
+ <h4 id=garbage-collection><span class=secno>2.8.8 </span>Garbage collection</h4>
<p>There is an <dfn id=implied-strong-reference>implied strong reference</dfn> from any IDL
attribute that returns a pre-existing object to that object.</p>
@@ -10275,8 +10063,8 @@
attribute boolean <a href=#dom-itemscope title=dom-itemScope>itemScope</a>;
attribute DOMString <a href=#dom-itemtype title=dom-itemType>itemType</a>;
attribute DOMString <a href=#dom-itemid title=dom-itemId>itemId</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemref title=dom-itemRef>itemRef</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemref title=dom-itemRef>itemRef</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
readonly attribute <a href=#htmlpropertiescollection>HTMLPropertiesCollection</a> <a href=#dom-properties title=dom-properties>properties</a>;
attribute any <a href=#dom-itemvalue title=dom-itemValue>itemValue</a>;
<!--MD-->
@@ -10289,7 +10077,7 @@
attribute DOMString <a href=#dom-accesskey title=dom-accessKey>accessKey</a>;
readonly attribute DOMString <a href=#dom-accesskeylabel title=dom-accessKeyLabel>accessKeyLabel</a>;
attribute boolean <a href=#dom-draggable title=dom-draggable>draggable</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
attribute DOMString <a href=#dom-contenteditable title=dom-contentEditable>contentEditable</a>;
readonly attribute boolean <a href=#dom-iscontenteditable title=dom-isContentEditable>isContentEditable</a>;
attribute <a href=#htmlmenuelement>HTMLMenuElement</a>? <a href=#dom-contextmenu title=dom-contextMenu>contextMenu</a>;
@@ -13990,7 +13778,7 @@
attribute DOMString <a href=#dom-link-media title=dom-link-media>media</a>;
attribute DOMString <a href=#dom-link-hreflang title=dom-link-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-link-type title=dom-link-type>type</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-link-sizes title=dom-link-sizes>sizes</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-link-sizes title=dom-link-sizes>sizes</a>;
};
<a href=#htmllinkelement>HTMLLinkElement</a> implements <span>LinkStyle</span>;</pre>
</dd>
@@ -23991,7 +23779,7 @@
attribute DOMString <a href=#dom-iframe-src title=dom-iframe-src>src</a>;
attribute DOMString <a href=#dom-iframe-srcdoc title=dom-iframe-srcdoc>srcdoc</a>;
attribute DOMString <a href=#dom-iframe-name title=dom-iframe-name>name</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-iframe-sandbox title=dom-iframe-sandbox>sandbox</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-iframe-sandbox title=dom-iframe-sandbox>sandbox</a>;
attribute boolean <a href=#dom-iframe-seamless title=dom-iframe-seamless>seamless</a>;
attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;
@@ -40371,7 +40159,7 @@
<pre class=idl>interface <dfn id=htmltablecellelement>HTMLTableCellElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute unsigned long <a href=#dom-tdth-colspan title=dom-tdth-colSpan>colSpan</a>;
attribute unsigned long <a href=#dom-tdth-rowspan title=dom-tdth-rowSpan>rowSpan</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-tdth-headers title=dom-tdth-headers>headers</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-tdth-headers title=dom-tdth-headers>headers</a>;
readonly attribute long <a href=#dom-tdth-cellindex title=dom-tdth-cellIndex>cellIndex</a>;
};</pre>
@@ -50050,7 +49838,7 @@
<dt>DOM interface:</dt>
<dd>
<pre class=idl>interface <dfn id=htmloutputelement>HTMLOutputElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-output-htmlfor title=dom-output-htmlFor>htmlFor</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-output-htmlfor title=dom-output-htmlFor>htmlFor</a>;
readonly attribute <a href=#htmlformelement>HTMLFormElement</a>? <a href=#dom-fae-form title=dom-fae-form>form</a>;
attribute DOMString <a href=#dom-fe-name title=dom-fe-name>name</a>;
Modified: index
===================================================================
--- index 2011-07-26 23:32:35 UTC (rev 6327)
+++ index 2011-07-26 23:44:38 UTC (rev 6328)
@@ -374,14 +374,12 @@
<li><a href=#htmlformcontrolscollection-0><span class=secno>2.8.2.2 </span>HTMLFormControlsCollection</a></li>
<li><a href=#htmloptionscollection-0><span class=secno>2.8.2.3 </span>HTMLOptionsCollection</a></li>
<li><a href=#htmlpropertiescollection-0><span class=secno>2.8.2.4 </span>HTMLPropertiesCollection</a></ol></li>
- <li><a href=#domtokenlist-0><span class=secno>2.8.3 </span>DOMTokenList</a></li>
- <li><a href=#domsettabletokenlist-0><span class=secno>2.8.4 </span>DOMSettableTokenList</a></li>
- <li><a href=#domstringmap-0><span class=secno>2.8.5 </span>DOMStringMap</a></li>
- <li><a href=#domelementmap-0><span class=secno>2.8.6 </span>DOMElementMap</a></li>
- <li><a href=#transferable-objects><span class=secno>2.8.7 </span>Transferable objects</a></li>
- <li><a href=#safe-passing-of-structured-data><span class=secno>2.8.8 </span>Safe passing of structured data</a></li>
- <li><a href=#dom-feature-strings><span class=secno>2.8.9 </span>DOM feature strings</a></li>
- <li><a href=#garbage-collection><span class=secno>2.8.10 </span>Garbage collection</a></ol></li>
+ <li><a href=#domstringmap-0><span class=secno>2.8.3 </span>DOMStringMap</a></li>
+ <li><a href=#domelementmap-0><span class=secno>2.8.4 </span>DOMElementMap</a></li>
+ <li><a href=#transferable-objects><span class=secno>2.8.5 </span>Transferable objects</a></li>
+ <li><a href=#safe-passing-of-structured-data><span class=secno>2.8.6 </span>Safe passing of structured data</a></li>
+ <li><a href=#dom-feature-strings><span class=secno>2.8.7 </span>DOM feature strings</a></li>
+ <li><a href=#garbage-collection><span class=secno>2.8.8 </span>Garbage collection</a></ol></li>
<li><a href=#namespaces><span class=secno>2.9 </span>Namespaces</a></ol></li>
<li><a href=#dom><span class=secno>3 </span>Semantics, structure, and APIs of HTML documents</a>
<ol>
@@ -3423,6 +3421,9 @@
<li><dfn id=htmlcollection><code>HTMLCollection</code></dfn> interface, and the terms <dfn id=collections>collections</dfn> and <dfn id=represented-by-the-collection>represented by the collection</dfn></li>
+ <li><dfn id=domtokenlist><code>DOMTokenList</code></dfn> interface</li>
+ <li><dfn id=domsettabletokenlist><code>DOMSettableTokenList</code></dfn> interface</li>
+
<li><dfn id=dom-domimplementation-createdocument title=dom-DOMImplementation-createDocument><code>createDocument()</code></dfn> method</li>
<li><dfn id=dom-document-createelement title=dom-Document-createElement><code>createElement()</code></dfn> method</li>
<li><dfn id=dom-document-createelementns title=dom-Document-createElementNS><code>createElementNS()</code></dfn> method</li>
@@ -7708,10 +7709,10 @@
<div class=example>
- <p>If an element with no attributes has its <code title=dom-tokenlist-remove><a href=#dom-tokenlist-remove>element.classList.remove()</a></code>
+ <p>If an element with no attributes has its <code title=dom-tokenlist-remove>element.classList.remove()</code>
method invoked, the underlying string won't be changed, since the
result of removing any token from the empty string is still the
- empty string. However, if the <code title=dom-tokenlist-add><a href=#dom-tokenlist-add>element.classList.add()</a></code> method is
+ empty string. However, if the <code title=dom-tokenlist-add>element.classList.add()</code> method is
then invoked, a <code title=attr-class><a href=#classes>class</a></code> attribute
will be added to the element with the value of the token to be
added.</p>
@@ -8238,222 +8239,9 @@
<!--MD-->
- <h4 id=domtokenlist-0><span class=secno>2.8.3 </span>DOMTokenList</h4>
- <p>The <code><a href=#domtokenlist>DOMTokenList</a></code> interface represents an interface
- to an underlying string that consists of a <a href=#set-of-space-separated-tokens>set of
- space-separated tokens</a>.</p>
+ <h4 id=domstringmap-0><span class=secno>2.8.3 </span>DOMStringMap</h4>
- <p class=note><code><a href=#domtokenlist>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.</p>
-
- <pre class=idl>interface <dfn id=domtokenlist>DOMTokenList</dfn> {
- readonly attribute unsigned long <a href=#dom-tokenlist-length title=dom-tokenlist-length>length</a>;
- getter DOMString? <a href=#dom-tokenlist-item title=dom-tokenlist-item>item</a>(in unsigned long index);
- boolean <a href=#dom-tokenlist-contains title=dom-tokenlist-contains>contains</a>(in DOMString token);
- void <a href=#dom-tokenlist-add title=dom-tokenlist-add>add</a>(in DOMString token);
- void <a href=#dom-tokenlist-remove title=dom-tokenlist-remove>remove</a>(in DOMString token);
- boolean <a href=#dom-tokenlist-toggle title=dom-tokenlist-toggle>toggle</a>(in DOMString token);
- <a href=#dom-tokenlist-tostring title=dom-tokenlist-toString>stringifier</a> DOMString ();
-};</pre>
-
- <dl class=domintro><dt><var title="">tokenlist</var> . <code title=dom-tokenlist-length><a href=#dom-tokenlist-length>length</a></code></dt>
- <dd>
- <p>Returns the number of tokens in the string.</p>
- </dd>
-
- <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.</p>
- </dd>
-
- <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. 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>
-
- </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 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 <a href=#supported-property-indices>supported property indices</a> 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
- there are no <a href=#supported-property-indices>supported property indices</a>.</p>
-
- <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, 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 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>
-
- <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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the token indicated by <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then return
- true and stop this algorithm.</li>
-
- <li>Otherwise, return false.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then stop the
- algorithm.</li>
-
- <li>Otherwise, if the <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying
- string is not the empty string and the last character of that
- string is not a <a href=#space-character>space character</a>, 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><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#remove-a-token-from-a-string title="remove a token from a string">remove
- the given <var title="">token</var> from the underlying
- string</a>.</li>
-
- </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 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>
-
- <li>Otherwise, <a href=#split-a-string-on-spaces title="split a string on spaces">split the
- underlying string on spaces</a> to get the list of tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <a href=#case-sensitive>case-sensitive</a> match for one of the tokens in the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string then <a href=#remove-a-token-from-a-string title="remove a token from a string">remove the given <var title="">token</var> from the underlying string</a> and stop the
- algorithm, returning false.</li>
-
- <li>Otherwise, if the <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying
- string is not the empty string and the last character of that
- string is not a <a href=#space-character>space character</a>, 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><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</li>
-
- <li>Return true.</li>
-
- </ol><p>A <code><a href=#domtokenlist>DOMTokenList</a></code> object must <dfn id=dom-tokenlist-tostring title=dom-tokenlist-toString>stringify</dfn> to the value of the
- <code><a href=#domtokenlist>DOMTokenList</a></code> object's underlying string.</p>
-
- </div>
-
-
- <h4 id=domsettabletokenlist-0><span class=secno>2.8.4 </span>DOMSettableTokenList</h4>
-
- <p>The <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code> interface is the same as the
- <code><a href=#domtokenlist>DOMTokenList</a></code> interface, except that it allows the
- underlying string to be directly changed.</p>
-
- <pre class=idl>interface <dfn id=domsettabletokenlist>DOMSettableTokenList</dfn> : <a href=#domtokenlist>DOMTokenList</a> {
- attribute DOMString <a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>;
-};</pre>
-
- <dl class=domintro><dt><var title="">tokenlist</var> . <code title=dom-DOMSettableTokenList-value><a href=#dom-domsettabletokenlist-value>value</a></code></dt>
- <dd>
- <p>Returns the underlying string.</p>
- <p>Can be set, to change the underlying string.</p>
- </dd>
-
- </dl><div class=impl>
-
- <p>An object implementing the <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>
- interface must act as defined for the <code><a href=#domtokenlist>DOMTokenList</a></code>
- interface, except for the <code title=dom-DOMSettableTokenList-value><a href=#dom-domsettabletokenlist-value>value</a></code> attribute defined
- here.</p>
-
- <p>The <dfn id=dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value><code>value</code></dfn>
- attribute must return the underlying string on getting, and must
- replace the underlying string with the new value on setting.</p>
-
- </div>
-
-
- <h4 id=domstringmap-0><span class=secno>2.8.5 </span>DOMStringMap</h4>
-
<p>The <code><a href=#domstringmap>DOMStringMap</a></code> interface represents a set of
name-value pairs. It exposes these using the scripting language's
native mechanisms for property access.</p>
@@ -8536,7 +8324,7 @@
<!--CSSREF-->
- <h4 id=domelementmap-0><span class=secno>2.8.6 </span>DOMElementMap</h4>
+ <h4 id=domelementmap-0><span class=secno>2.8.4 </span>DOMElementMap</h4>
<p>The <code><a href=#domelementmap>DOMElementMap</a></code> interface represents a set of
name-element mappings. It exposes these using the scripting
@@ -8586,7 +8374,7 @@
- <h4 id=transferable-objects><span class=secno>2.8.7 </span>Transferable objects</h4>
+ <h4 id=transferable-objects><span class=secno>2.8.5 </span>Transferable objects</h4>
<p>Some objects support being copied and closed in one operation.
This is called <i>transferring</i> the object, and is used in
@@ -8613,7 +8401,7 @@
<!--<li><code>ArrayBuffer</code>-->
</ul><div class=impl>
- <h4 id=safe-passing-of-structured-data><span class=secno>2.8.8 </span>Safe passing of structured data</h4>
+ <h4 id=safe-passing-of-structured-data><span class=secno>2.8.6 </span>Safe passing of structured data</h4>
<p>When a user agent is required to obtain a <dfn id=structured-clone>structured
clone</dfn> of a value, optionally with a <i>transfer map</i>, it
@@ -8793,7 +8581,7 @@
</div>
- <h4 id=dom-feature-strings><span class=secno>2.8.9 </span>DOM feature strings</h4>
+ <h4 id=dom-feature-strings><span class=secno>2.8.7 </span>DOM feature strings</h4>
<p>DOM3 Core defines mechanisms for checking for interface support,
and for obtaining implementations of interfaces, using <a href=http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMFeatures>feature
@@ -8817,7 +8605,7 @@
<div class=impl>
- <h4 id=garbage-collection><span class=secno>2.8.10 </span>Garbage collection</h4>
+ <h4 id=garbage-collection><span class=secno>2.8.8 </span>Garbage collection</h4>
<p>There is an <dfn id=implied-strong-reference>implied strong reference</dfn> from any IDL
attribute that returns a pre-existing object to that object.</p>
@@ -10144,8 +9932,8 @@
attribute boolean <a href=#dom-itemscope title=dom-itemScope>itemScope</a>;
attribute DOMString <a href=#dom-itemtype title=dom-itemType>itemType</a>;
attribute DOMString <a href=#dom-itemid title=dom-itemId>itemId</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemref title=dom-itemRef>itemRef</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemref title=dom-itemRef>itemRef</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-itemprop title=dom-itemProp>itemProp</a>;
readonly attribute <a href=#htmlpropertiescollection>HTMLPropertiesCollection</a> <a href=#dom-properties title=dom-properties>properties</a>;
attribute any <a href=#dom-itemvalue title=dom-itemValue>itemValue</a>;
<!--MD-->
@@ -10158,7 +9946,7 @@
attribute DOMString <a href=#dom-accesskey title=dom-accessKey>accessKey</a>;
readonly attribute DOMString <a href=#dom-accesskeylabel title=dom-accessKeyLabel>accessKeyLabel</a>;
attribute boolean <a href=#dom-draggable title=dom-draggable>draggable</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-dropzone title=dom-dropzone>dropzone</a>;
attribute DOMString <a href=#dom-contenteditable title=dom-contentEditable>contentEditable</a>;
readonly attribute boolean <a href=#dom-iscontenteditable title=dom-isContentEditable>isContentEditable</a>;
attribute <a href=#htmlmenuelement>HTMLMenuElement</a>? <a href=#dom-contextmenu title=dom-contextMenu>contextMenu</a>;
@@ -13859,7 +13647,7 @@
attribute DOMString <a href=#dom-link-media title=dom-link-media>media</a>;
attribute DOMString <a href=#dom-link-hreflang title=dom-link-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-link-type title=dom-link-type>type</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-link-sizes title=dom-link-sizes>sizes</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-link-sizes title=dom-link-sizes>sizes</a>;
};
<a href=#htmllinkelement>HTMLLinkElement</a> implements <span>LinkStyle</span>;</pre>
</dd>
@@ -23860,7 +23648,7 @@
attribute DOMString <a href=#dom-iframe-src title=dom-iframe-src>src</a>;
attribute DOMString <a href=#dom-iframe-srcdoc title=dom-iframe-srcdoc>srcdoc</a>;
attribute DOMString <a href=#dom-iframe-name title=dom-iframe-name>name</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-iframe-sandbox title=dom-iframe-sandbox>sandbox</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-iframe-sandbox title=dom-iframe-sandbox>sandbox</a>;
attribute boolean <a href=#dom-iframe-seamless title=dom-iframe-seamless>seamless</a>;
attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;
@@ -40243,7 +40031,7 @@
<pre class=idl>interface <dfn id=htmltablecellelement>HTMLTableCellElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute unsigned long <a href=#dom-tdth-colspan title=dom-tdth-colSpan>colSpan</a>;
attribute unsigned long <a href=#dom-tdth-rowspan title=dom-tdth-rowSpan>rowSpan</a>;
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-tdth-headers title=dom-tdth-headers>headers</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-tdth-headers title=dom-tdth-headers>headers</a>;
readonly attribute long <a href=#dom-tdth-cellindex title=dom-tdth-cellIndex>cellIndex</a>;
};</pre>
@@ -49922,7 +49710,7 @@
<dt>DOM interface:</dt>
<dd>
<pre class=idl>interface <dfn id=htmloutputelement>HTMLOutputElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
- [PutForwards=<a href=#dom-domsettabletokenlist-value title=dom-DOMSettableTokenList-value>value</a>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-output-htmlfor title=dom-output-htmlFor>htmlFor</a>;
+ [PutForwards=<span title=dom-DOMSettableTokenList-value>value</span>] readonly attribute <a href=#domsettabletokenlist>DOMSettableTokenList</a> <a href=#dom-output-htmlfor title=dom-output-htmlFor>htmlFor</a>;
readonly attribute <a href=#htmlformelement>HTMLFormElement</a>? <a href=#dom-fae-form title=dom-fae-form>form</a>;
attribute DOMString <a href=#dom-fe-name title=dom-fe-name>name</a>;
Modified: source
===================================================================
--- source 2011-07-26 23:32:35 UTC (rev 6327)
+++ source 2011-07-26 23:44:38 UTC (rev 6328)
@@ -21,6 +21,8 @@
interface FileList { };
interface ArrayBuffer { };
interface HTMLCollection { };
+ interface DOMTokenList { };
+ interface DOMSettableTokenList { attribute any value; };
</pre>
<!--START complete--><!--START epub-->
<!--START html--><!--START dev-html-->
@@ -2418,6 +2420,9 @@
<li><dfn><code>HTMLCollection</code></dfn> interface, and the terms <dfn>collections</dfn> and <dfn>represented by the collection</dfn></li>
+ <li><dfn><code>DOMTokenList</code></dfn> interface</li>
+ <li><dfn><code>DOMSettableTokenList</code></dfn> interface</li>
+
<li><dfn title="dom-DOMImplementation-createDocument"><code>createDocument()</code></dfn> method</li>
<li><dfn title="dom-Document-createElement"><code>createElement()</code></dfn> method</li>
<li><dfn title="dom-Document-createElementNS"><code>createElementNS()</code></dfn> method</li>
@@ -8289,265 +8294,7 @@
<!--START w3c-html--><!--MD-->
- <h4>DOMTokenList</h4>
- <p>The <code>DOMTokenList</code> interface represents an interface
- to an underlying string that consists of a <span>set of
- space-separated tokens</span>.</p>
-
- <p class="note"><code>DOMTokenList</code> objects are always
- <span>case-sensitive</span>, even when the underlying string might
- ordinarily be treated in a case-insensitive manner.</p>
-
- <pre class="idl">interface <dfn>DOMTokenList</dfn> {
- readonly attribute unsigned long <span title="dom-tokenlist-length">length</span>;
- getter DOMString? <span title="dom-tokenlist-item">item</span>(in unsigned long index);
- boolean <span title="dom-tokenlist-contains">contains</span>(in DOMString token);
- void <span title="dom-tokenlist-add">add</span>(in DOMString token);
- void <span title="dom-tokenlist-remove">remove</span>(in DOMString token);
- boolean <span title="dom-tokenlist-toggle">toggle</span>(in DOMString token);
- <span title="dom-tokenlist-toString">stringifier</span> DOMString ();
-};</pre>
-
- <dl class="domintro">
-
- <dt><var title="">tokenlist</var> . <code title="dom-tokenlist-length">length</code></dt>
- <dd>
- <p>Returns the number of tokens in the string.</p>
- </dd>
-
- <dt><var title="">element</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-item">item</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.</p>
- </dd>
-
- <dt><var title="">hastoken</var> = <var title="">tokenlist</var> . <code title="dom-tokenlist-contains">contains</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>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>
-
- <dt><var title="">tokenlist</var> . <code title="dom-tokenlist-add">add</code>(<var title="">token</var>)</dt>
- <dd>
- <p>Adds <var title="">token</var>, unless it is already present.</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>
-
- <dt><var title="">tokenlist</var> . <code title="dom-tokenlist-remove">remove</code>(<var title="">token</var>)</dt>
- <dd>
- <p>Removes <var title="">token</var> if it is present.</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>
-
- <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. 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>
-
- </dl>
-
- <div class="impl">
-
- <p>The <dfn title="dom-tokenlist-length"><code>length</code></dfn>
- attribute must return the number of tokens that result from <span
- title="split a string on spaces">splitting the underlying string on
- spaces</span>. This is the <var
- title="dom-tokenlist-length">length</var>.</p>
-
- <p>The object's <span>supported property indices</span> are the
- numbers in the range zero to <span title=""><var
- title="dom-tokenlist-length">length</var>-1</span>, unless the <var
- title="dom-tokenlist-length">length</var> is zero, in which case
- there are no <span>supported property indices</span>.</p>
-
- <p>The <dfn title="dom-tokenlist-item"><code>item(<var
- title="">index</var>)</code></dfn> method must <span title="split a
- string on spaces">split the underlying string on spaces</span>,
- preserving the order of the tokens as found in the underlying
- 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 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 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 is the empty string,
- then raise a <code>SYNTAX_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>If the <var title="">token</var> argument contains any <span
- title="space character">space characters</span>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>Otherwise, <span title="split a string on spaces">split the
- underlying string on spaces</span> to get the list of tokens in the
- <code>DOMTokenList</code> object's underlying string.</li>
-
- <li>If the token indicated by <var title="">token</var> is a
- <span>case-sensitive</span> match for one of the tokens in the
- <code>DOMTokenList</code> object's underlying string then return
- true and stop this algorithm.</li>
-
- <li>Otherwise, return false.</li>
-
- </ol>
-
- <p>The <dfn 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 is the empty string,
- then raise a <code>SYNTAX_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>If the <var title="">token</var> argument contains any <span
- title="space character">space characters</span>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>Otherwise, <span title="split a string on spaces">split the
- underlying string on spaces</span> to get the list of tokens in the
- <code>DOMTokenList</code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <span>case-sensitive</span> match for one of the tokens in the
- <code>DOMTokenList</code> object's underlying string then stop the
- algorithm.</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>
-
- </ol>
-
- <p>The <dfn 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 is the empty string,
- then raise a <code>SYNTAX_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>If the <var title="">token</var> argument contains any <span
- title="space character">space characters</span>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>Otherwise, <span title="remove a token from a string">remove
- the given <var title="">token</var> from the underlying
- string</span>.</li>
-
- </ol>
-
- <p>The <dfn 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 is the empty string,
- then raise a <code>SYNTAX_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>If the <var title="">token</var> argument contains any <span
- title="space character">space characters</span>, then raise an
- <code>INVALID_CHARACTER_ERR</code> exception and stop the
- algorithm.</li>
-
- <li>Otherwise, <span title="split a string on spaces">split the
- underlying string on spaces</span> to get the list of tokens in the
- <code>DOMTokenList</code> object's underlying string.</li>
-
- <li>If the given <var title="">token</var> is a
- <span>case-sensitive</span> match for one of the tokens in the
- <code>DOMTokenList</code> object's underlying string then <span
- title="remove a token from a string">remove the given <var
- title="">token</var> from the underlying string</span> and stop the
- algorithm, returning false.</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>
-
- <li>Return true.</li>
-
- </ol>
-
- <p>A <code>DOMTokenList</code> object must <dfn
- title="dom-tokenlist-toString">stringify</dfn> to the value of the
- <code>DOMTokenList</code> object's underlying string.</p>
-
- </div>
-
-
- <h4>DOMSettableTokenList</h4>
-
- <p>The <code>DOMSettableTokenList</code> interface is the same as the
- <code>DOMTokenList</code> interface, except that it allows the
- underlying string to be directly changed.</p>
-
- <pre class="idl">interface <dfn>DOMSettableTokenList</dfn> : <span>DOMTokenList</span> {
- attribute DOMString <span title="dom-DOMSettableTokenList-value">value</span>;
-};</pre>
-
- <dl class="domintro">
-
- <dt><var title="">tokenlist</var> . <code title="dom-DOMSettableTokenList-value">value</code></dt>
- <dd>
- <p>Returns the underlying string.</p>
- <p>Can be set, to change the underlying string.</p>
- </dd>
-
- </dl>
-
- <div class="impl">
-
- <p>An object implementing the <code>DOMSettableTokenList</code>
- interface must act as defined for the <code>DOMTokenList</code>
- interface, except for the <code
- title="dom-DOMSettableTokenList-value">value</code> attribute defined
- here.</p>
-
- <p>The <dfn
- title="dom-DOMSettableTokenList-value"><code>value</code></dfn>
- attribute must return the underlying string on getting, and must
- replace the underlying string with the new value on setting.</p>
-
- </div>
-
-
<h4>DOMStringMap</h4>
<p>The <code>DOMStringMap</code> interface represents a set of
More information about the Commit-Watchers
mailing list