- From: poot <cvsmail@w3.org>
- Date: Wed, 8 Oct 2008 09:53:34 +0900 (JST)
- To: public-html-diffs@w3.org
WF2: option.form (whatwg r2300)
4.10.9 The option element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#the-option-element
HTMLOptionElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#htmloptionelement
Option()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#dom-option
text
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#dom-option-text
form
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#dom-option-form
index
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1473.html#dom-option-index
http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1472&r2=1.1473&f=h
http://html5.org/tools/web-apps-tracker?from=2299&to=2300
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1472
retrieving revision 1.1473
diff -u -d -r1.1472 -r1.1473
--- Overview.html 8 Oct 2008 00:29:19 -0000 1.1472
+++ Overview.html 8 Oct 2008 00:49:42 -0000 1.1473
@@ -21392,7 +21392,7 @@
<a href=#dom-option-tvd title=dom-option-tvd>Constructor</a>(in DOMString text, in DOMString value, in boolean defaultSelected)]
interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute boolean <a href=#dom-option-disabled title=dom-option-disabled>disabled</a>;
- readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <span title=dom-option-form>form</span>;
+ readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-option-form title=dom-option-form>form</a>;
attribute DOMString <a href=#dom-option-label title=dom-option-label>label</a>;
attribute boolean <a href=#dom-option-defaultselected title=dom-option-defaultSelected>defaultSelected</a>;
attribute boolean <a href=#dom-option-selected title=dom-option-selected>selected</a>;
@@ -21438,7 +21438,15 @@
false otherwise.<p>The <dfn id=dom-option-index title=dom-option-index><code>index</code></dfn> DOM
attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.<p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> DOM
attribute must return the same value as the <code><a href=#textcontent>textContent</a></code>
- DOM attribute on the element.<p>Four constructors are provided for creating
+ DOM attribute on the element.<p>The <dfn id=dom-option-form title=dom-option-form><code>form</code></dfn> DOM
+ attribute's behavior depends on whether the <code><a href=#the-option-element>option</a></code>
+ element is in a <code><a href=#the-select-element>select</a></code> element or not. If the
+ <code><a href=#the-option-element>option</a></code> has a <code><a href=#the-select-element>select</a></code> element as its parent,
+ or has a <code><a href=#the-colgroup-element>colgroup</a></code> element as its parent and that
+ <code><a href=#the-colgroup-element>colgroup</a></code> element has a <code><a href=#the-select-element>select</a></code> element as
+ its parent, then the <code title=dom-option-form><a href=#dom-option-form>form</a></code> DOM
+ attribute must return the same value as the <code title=dom-select-form>form</code> DOM attribute on that
+ <code><a href=#the-select-element>select</a></code> element. Otherwise, it must return null.<p>Four constructors are provided for creating
<code><a href=#htmloptionelement>HTMLOptionElement</a></code> objects (in addition to the factory
methods from DOM Core such as <code title="">createElement()</code>): <dfn id=dom-option title=dom-option><code>Option()</code></dfn>, <dfn id=dom-option-t title=dom-option-t><code>Option(<var title="">text</var>)</code></dfn>, <dfn id=dom-option-tv title=dom-option-tv><code>Option(<var title="">text</var>, <var title="">value</var>)</code></dfn>, and <dfn id=dom-option-tvd title=dom-option-tvd><code>Option(<var title="">text</var>, <var title="">value</var>, <var title="">defaultSelected</var>)</code></dfn>. When invoked as
constructors, these must return a new <code><a href=#htmloptionelement>HTMLOptionElement</a></code>
Received on Wednesday, 8 October 2008 00:54:13 UTC