[html5] r3762 - [e] (0) Clarify a note on Option() constructor.

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 4 16:29:53 PDT 2009


Author: ianh
Date: 2009-09-04 16:29:52 -0700 (Fri, 04 Sep 2009)
New Revision: 3762

Modified:
   index
   source
Log:
[e] (0) Clarify a note on Option() constructor.

Modified: index
===================================================================
--- index	2009-09-04 23:22:37 UTC (rev 3761)
+++ index	2009-09-04 23:29:52 UTC (rev 3762)
@@ -35421,11 +35421,13 @@
   be set to true.</p>
 
   <p class=note>The <code title=dom-option-tvd><a href=#dom-option-tvd>Option()</a></code>
-  constructor with two or more arguments overrides the initial state
-  of the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a>
-  state to always be false even if the third argument is true
-  (implying that a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code>
-  attribute is to be set).</p>
+  constructor with three or fewer arguments overrides the initial
+  state of the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state to
+  always be false even if the third argument is true (implying that a
+  <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute is to
+  be set). The fourth argument can be used to explicitly set the
+  initial <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> state when
+  using the constructor.</p>
 
   <p>An <code><a href=#the-option-element>option</a></code> element's <dfn id=concept-option-index title=concept-option-index>index</dfn> is the number of
   <code><a href=#the-option-element>option</a></code> element that are in the same <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> but that

Modified: source
===================================================================
--- source	2009-09-04 23:22:37 UTC (rev 3761)
+++ source	2009-09-04 23:29:52 UTC (rev 3762)
@@ -39649,11 +39649,15 @@
   be set to true.</p>
 
   <p class="note">The <code title="dom-option-tvd">Option()</code>
-  constructor with two or more arguments overrides the initial state
-  of the <span title="concept-option-selectedness">selectedness</span>
-  state to always be false even if the third argument is true
-  (implying that a <code title="attr-option-selected">selected</code>
-  attribute is to be set).</p>
+  constructor with three or fewer arguments overrides the initial
+  state of the <span
+  title="concept-option-selectedness">selectedness</span> state to
+  always be false even if the third argument is true (implying that a
+  <code title="attr-option-selected">selected</code> attribute is to
+  be set). The fourth argument can be used to explicitly set the
+  initial <span
+  title="concept-option-selectedness">selectedness</span> state when
+  using the constructor.</p>
 
   <p>An <code>option</code> element's <dfn
   title="concept-option-index">index</dfn> is the number of




More information about the Commit-Watchers mailing list