Short URL: http://html5.org/r/2152
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2152 | WF2: <option> element summary. | 2008-09-04 11:23 |
Index: source
===================================================================
--- source (revision 2151)
+++ source (revision 2152)
@@ -24025,8 +24025,8 @@
attribute DOMString <span title="dom-input-type">type</span>;
attribute DOMString <span title="dom-input-defaultValue">defaultValue</span>;
attribute DOMString <span title="dom-input-value">value</span>;
- attribute DOMTimeStamp <span>valueAsDate</span>;
- attribute float <span>valueAsNumber</span>;
+ attribute DOMTimeStamp <span title="dom-input-valueAsDate">valueAsDate</span>;
+ attribute float <span title="dom-input-valueAsNumber">valueAsNumber</span>;
readonly attribute <span>HTMLOptionElement</span> <span title="dom-input-selectedOption">selectedOption</span>;
readonly attribute <span>HTMLCollection</span> <span title="dom-input-labels">labels</span>;
@@ -24192,7 +24192,8 @@
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>phrasing content</span> is expected.</dd>
<dt>Content model:</dt>
- <dd><span>Phrasing content</span>.</dd>
+ <dd>Either: <span>phrasing content</span>.</dd>
+ <dd>Or: Zero or more <code>option</code> elements.</dd>
<dt>Element-specific attributes:</dt>
<dd>None.</dd>
<dt>DOM interface:</dt>
@@ -24221,8 +24222,8 @@
<dt>DOM interface:</dt>
<dd>
<pre class="idl">interface <dfn>HTMLOptGroupElement</dfn> : <span>HTMLElement</span> {
- attribute boolean <span title="dom-select-disabled">disabled</span>;
- attribute DOMString <span title="dom-select-label">label</span>;
+ attribute boolean <span title="dom-optgroup-disabled">disabled</span>;
+ attribute DOMString <span title="dom-optgroup-label">label</span>;
};</pre>
</dd>
</dl>
@@ -24230,27 +24231,52 @@
<p class="big-issue">...</p>
- <h4>The <code>option</code> element</h4>
+ <h4>The <dfn><code>option</code></dfn> element</h4>
- <h4>Constructors</h4>
+ <dl class="element">
+ <dt>Categories</dt>
+ <dd>None.</dd>
+ <dt>Contexts in which this element may be used:</dt>
+ <dd>As a child of a <code>select</code> element.</dd>
+ <dd>As a child of a <code>datalist</code> element.</dd>
+ <dd>As a child of an <code>optgroup</code> element.</dd>
+ <dt>Content model:</dt>
+ <dd>Text.</dd>
+ <dt>Element-specific attributes:</dt>
+ <dd><code title="attr-option-disabled">disabled</code></dd>
+ <dd><code title="attr-option-label">label</code></dd>
+ <dd><code title="attr-option-selected">selected</code></dd>
+ <dd><code title="attr-option-value">value</code></dd>
+ <dt>DOM interface:</dt>
+ <dd>
+<pre class="idl">[<span title="dom-option">Constructor</span>(),
+ <span title="dom-option-n">Constructor</span>(in DOMString name),
+ <span title="dom-option-nv">Constructor</span>(in DOMString name, in DOMString value)]
+interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
+ attribute boolean <span title="dom-option-disabled">disabled</span>;
+ readonly attribute <span>HTMLFormElement</span> <span title="dom-option-form">form</span>;
+ attribute DOMString <span title="dom-option-label">label</span>;
+ attribute boolean <span title="dom-option-defaultSelected">defaultSelected</span>;
+ attribute boolean <span title="dom-option-selected">selected</span>;
+ attribute DOMString <span title="dom-input-value">value</span>;
- <p>All <code>Window</code> objects must provide the following
- constructors:</p>
+ readonly attribute DOMString <span title="dom-option-text">text</span>;
+ readonly attribute long <span title="dom-option-index">index</span>;
+};</pre>
+ </dd>
+ </dl>
- <dl>
+ <p class="big-issue">...</p>
- <dt><dfn title="dom-option"><code>Option()</code></dfn></dt>
- <dt><dfn title="dom-option-n"><code>Option(in DOMString <var title="">name</var>)</code></dfn></dt>
- <dt><dfn title="dom-option-nv"><code>Option(in DOMString <var title="">name</var>, in DOMString <var title="">value</var>)</code></dfn></dt>
+ <p class="big-issue">
+ <dfn title="dom-option"><code>Option()</code></dfn>
+ <dfn title="dom-option-n"><code>Option(<var title="">name</var>)</code></dfn>
+ <dfn title="dom-option-nv"><code>Option(<var title="">name</var>, <var title="">value</var>)</code></dfn>
+ ... must return a new <code>HTMLOptionElement</code> object (a new
+ <code>option</code> element). ... argument processing ...
+ </p>
- <dd><p>When invoked as constructors, these must return a new
- <code>HTMLOptionElement</code> object (a new <code>option</code>
- element). <span class="big-issue">need to define argument
- processing</span></p></dd>
- </dl>
-
-
<h4>The <code>textarea</code> element</h4>
<h4>The <code>output</code> element</h4>