[html5] r2300 - [] (0) WF2: option.form

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 7 17:49:39 PDT 2008


Author: ianh
Date: 2008-10-07 17:49:38 -0700 (Tue, 07 Oct 2008)
New Revision: 2300

Modified:
   index
   source
Log:
[] (0) WF2: option.form

Modified: index
===================================================================
--- index	2008-10-08 00:29:15 UTC (rev 2299)
+++ index	2008-10-08 00:49:38 UTC (rev 2300)
@@ -26667,7 +26667,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>;
@@ -26735,6 +26735,16 @@
   attribute must return the same value as the <code><a href=#textcontent>textContent</a></code>
   DOM attribute on the element.</p>
 
+  <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>
+
   <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

Modified: source
===================================================================
--- source	2008-10-08 00:29:15 UTC (rev 2299)
+++ source	2008-10-08 00:49:38 UTC (rev 2300)
@@ -29971,6 +29971,17 @@
   attribute must return the same value as the <code>textContent</code>
   DOM attribute on the element.</p>
 
+  <p>The <dfn title="dom-option-form"><code>form</code></dfn> DOM
+  attribute's behavior depends on whether the <code>option</code>
+  element is in a <code>select</code> element or not. If the
+  <code>option</code> has a <code>select</code> element as its parent,
+  or has a <code>colgroup</code> element as its parent and that
+  <code>colgroup</code> element has a <code>select</code> element as
+  its parent, then the <code title="dom-option-form">form</code> DOM
+  attribute must return the same value as the <code
+  title="dom-select-form">form</code> DOM attribute on that
+  <code>select</code> element. Otherwise, it must return null.</p>
+
   <p>Four constructors are provided for creating
   <code>HTMLOptionElement</code> objects (in addition to the factory
   methods from DOM Core such as <code




More information about the Commit-Watchers mailing list