Skip to content
Permalink
Browse files

[] (0) WF2: select.options

git-svn-id: http://svn.whatwg.org/webapps@2288 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Oct 6, 2008
1 parent 3e613f1 commit a480c704380f8825e2b793d6208dd0247f0772a8
Showing with 31 additions and 21 deletions.
  1. +16 −11 index
  2. +15 −10 source
27 index

readonly attribute DOMString <a href=#dom-select-type title=dom-select-type>type</a>;

readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <span title=dom-select-options>options</span>;
readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <a href=#dom-select-options title=dom-select-options>options</a>;
attribute unsigned long <span title=dom-select-length>length</span>;
[IndexGetter] <a href=#htmlelement>HTMLElement</a> <span title=dom-select-XXX9>XXX9</span>(in unsigned long index);

<p>The <dfn id=attr-select-multiple title=attr-select-multiple><code>multiple</code></dfn>
attribute is a <a href=#boolean-attribute>boolean attribute</a>. If the attribute is
present, then the <code><a href=#the-select-element>select</a></code> element represents a control
for selecting zero or more options from the <a href=#select-option-list title=select-option-list>list of options</a>. If the attribute
is absent, then the <code><a href=#the-select-element>select</a></code> element represents a control
for selecting a single option from the <a href=#select-option-list title=select-option-list>list of options</a>.</p>

<p>The <dfn id=select-option-list title=select-option-list>list of options</dfn> for a
<code><a href=#the-select-element>select</a></code> element consists of all the <code><a href=#the-option-element>option</a></code>
element children of the <code><a href=#the-select-element>select</a></code> element, and all the
<code><a href=#the-option-element>option</a></code> element children of all the
for selecting zero or more options from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>. If the
attribute is absent, then the <code><a href=#the-select-element>select</a></code> element represents
a control for selecting a single option from the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a>.</p>

<p>The <dfn id=concept-select-option-list title=concept-select-option-list>list of options</dfn>
for a <code><a href=#the-select-element>select</a></code> element consists of all the
<code><a href=#the-option-element>option</a></code> element children of the <code><a href=#the-select-element>select</a></code>
element, and all the <code><a href=#the-option-element>option</a></code> element children of all the
<code><a href=#the-optgroup-element>optgroup</a></code> element children of the <code><a href=#the-select-element>select</a></code>
element, in <a href=#tree-order>tree order</a>.</p>

and the string "<code title="">select-multiple</code>" if the <code title=attr-select-multiple><a href=#attr-select-multiple>multiple</a></code> attribute is
present.</p>

<p>The <dfn id=dom-select-options title=dom-select-options><code>options</code></dfn>
attribute must return an <code><a href=#htmloptionscollection-0>HTMLOptionsCollection</a></code> rooted
at the <code><a href=#the-select-element>select</a></code> node, whose filter matches the elements
in the <a href=#concept-select-option-list title=concept-select-option-list>list of
options</a>.</p>

<!-- XXX
readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-options">options</span>;
attribute unsigned long <span title="dom-select-length">length</span>;
[IndexGetter] <span>HTMLElement</span> <span title="dom-select-XXX9">XXX9</span>(in unsigned long index);

<dt>DOM interface:</dt>
<dd>
<pre class=idl>interface <dfn id=htmldatalistelement>HTMLDataListElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <span title=dom-select-options>options</span>;
readonly attribute <a href=#htmloptionscollection-0>HTMLOptionsCollection</a> <a href=#dom-select-options title=dom-select-options>options</a>;
};</pre>
</dd>
</dl><p class=XXX>...</p>
25 source
attribute is a <span>boolean attribute</span>. If the attribute is
present, then the <code>select</code> element represents a control
for selecting zero or more options from the <span
title="select-option-list">list of options</span>. If the attribute
is absent, then the <code>select</code> element represents a control
for selecting a single option from the <span
title="select-option-list">list of options</span>.</p>

<p>The <dfn title="select-option-list">list of options</dfn> for a
<code>select</code> element consists of all the <code>option</code>
element children of the <code>select</code> element, and all the
<code>option</code> element children of all the
title="concept-select-option-list">list of options</span>. If the
attribute is absent, then the <code>select</code> element represents
a control for selecting a single option from the <span
title="concept-select-option-list">list of options</span>.</p>

<p>The <dfn title="concept-select-option-list">list of options</dfn>
for a <code>select</code> element consists of all the
<code>option</code> element children of the <code>select</code>
element, and all the <code>option</code> element children of all the
<code>optgroup</code> element children of the <code>select</code>
element, in <span>tree order</span>.</p>

title="attr-select-multiple">multiple</code> attribute is
present.</p>

<p>The <dfn title="dom-select-options"><code>options</code></dfn>
attribute must return an <code>HTMLOptionsCollection</code> rooted
at the <code>select</code> node, whose filter matches the elements
in the <span title="concept-select-option-list">list of
options</span>.</p>

<!-- XXX
readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-options">options</span>;
attribute unsigned long <span title="dom-select-length">length</span>;
[IndexGetter] <span>HTMLElement</span> <span title="dom-select-XXX9">XXX9</span>(in unsigned long index);

0 comments on commit a480c70

Please sign in to comment.
You can’t perform that action at this time.