Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) HTMLOptionsCollection.selectedItem
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10184

git-svn-id: http://svn.whatwg.org/webapps@5439 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 8, 2010
1 parent 2289c79 commit 6c76b4a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
21 changes: 20 additions & 1 deletion complete.html
Expand Up @@ -7043,6 +7043,7 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
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>
Expand Down Expand Up @@ -7086,6 +7087,17 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
<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
&minus;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
Expand Down Expand Up @@ -7184,7 +7196,14 @@ <h5 id=htmloptionscollection-0><span class=secno>2.7.2.4 </span>HTMLOptionsColle
<li><p>Remove <var title="">element</var> from its parent
node.</li>

</ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div>
</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>

<!--MD-->
<div data-component="HTML Microdata (editor: Ian Hickson)">
Expand Down
21 changes: 20 additions & 1 deletion index
Expand Up @@ -7020,6 +7020,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
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>
Expand Down Expand Up @@ -7063,6 +7064,17 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<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
&minus;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
Expand Down Expand Up @@ -7161,7 +7173,14 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<li><p>Remove <var title="">element</var> from its parent
node.</li>

</ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div>
</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>

<!--MD-->
<div data-component="HTML Microdata (editor: Ian Hickson)">
Expand Down
18 changes: 18 additions & 0 deletions source
Expand Up @@ -6775,6 +6775,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in optional <span>HTMLElement</span> before);
void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in long before);
void <span title="dom-HTMLOptionsCollection-remove">remove</span>(in long index);
attribute long <span title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</span>;
};</pre>

<dl class="domintro">
Expand Down Expand Up @@ -6821,6 +6822,17 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
<code>optgroup</code> element, then the method does nothing.</p>
</dd>

<dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</code> [ = <var title="">value</var> ]</dt>

<dd>

<p>Returns the index of the first selected item, if any, or
&#x2212;1 if there is no selected item.</p>

<p>Can be set, to change the selection.</p>

</dd>

</dl>

<div class="impl">
Expand Down Expand Up @@ -6961,6 +6973,12 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..

</ol>

<p>The <dfn
title="dom-HTMLOptionsCollection-selectedIndex"><code>selectedIndex</code></dfn>
IDL attribute must act like the identically named attribute on the
<code>select</code> element on which the
<code>HTMLOptionsCollection</code> is rooted</p>

<!-- see also http://ln.hixie.ch/?start=1161042744&count=1 -->

</div>
Expand Down

0 comments on commit 6c76b4a

Please sign in to comment.