- From: poot <cvsmail@w3.org>
- Date: Wed, 8 Sep 2010 14:23:26 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: HTMLOptionsCollection.selectedItem (whatwg r5439) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4337&r2=1.4338&f=h http://html5.org/tools/web-apps-tracker?from=5438&to=5439 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4337 retrieving revision 1.4338 diff -u -d -r1.4337 -r1.4338 --- Overview.html 8 Sep 2010 03:30:18 -0000 1.4337 +++ Overview.html 8 Sep 2010 05:16:09 -0000 1.4338 @@ -6194,6 +6194,7 @@ void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="#htmlelement">HTMLElement</a> element, in optional <a href="#htmlelement">HTMLElement</a> before); void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="#htmlelement">HTMLElement</a> element, in long before); void <a href="#dom-htmloptionscollection-remove" title="dom-HTMLOptionsCollection-remove">remove</a>(in long index); + attribute long <a href="#dom-htmloptionscollection-selectedindex" title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</a>; };</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-length"><a href="#dom-htmloptionscollection-length">length</a></code> [ = <var title="">value</var> ]</dt> <dd> <p>Returns the number of elements in the collection.</p> @@ -6235,6 +6236,17 @@ <code><a href="#the-optgroup-element">optgroup</a></code> element, then the method does nothing.</p> </dd> + <dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-selectedIndex"><a href="#dom-htmloptionscollection-selectedindex">selectedIndex</a></code> [ = <var title="">value</var> ]</dt> + + <dd> + + <p>Returns the index of the first selected item, if any, or + −1 if there is no selected item.</p> + + <p>Can be set, to change the selection.</p> + + </dd> + </dl><div class="impl"> <p>The object's <span>indices of the supported indexed @@ -6333,7 +6345,14 @@ <li><p>Remove <var title="">element</var> from its parent node.</li> - </ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div><h4 id="domtokenlist-0"><span class="secno">2.7.3 </span>DOMTokenList</h4><p>The <code><a href="#domtokenlist">DOMTokenList</a></code> interface represents an interface + </ol><p>The <dfn id="dom-htmloptionscollection-selectedindex" title="dom-HTMLOptionsCollection-selectedIndex"><code>selectedIndex</code></dfn> + IDL attribute must act like the identically named attribute on the + <code><a href="#the-select-element">select</a></code> element on which the + <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code> is rooted</p> + + <!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --> + + </div><h4 id="domtokenlist-0"><span class="secno">2.7.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 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
Received on Wednesday, 8 September 2010 05:16:51 UTC