[html5] r3596 - [] (0) Define how option.value really works.

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 12 00:44:11 PDT 2009


Author: ianh
Date: 2009-08-12 00:44:10 -0700 (Wed, 12 Aug 2009)
New Revision: 3596

Modified:
   index
   source
Log:
[] (0) Define how option.value really works.

Modified: index
===================================================================
--- index	2009-08-12 06:34:57 UTC (rev 3595)
+++ index	2009-08-12 07:44:10 UTC (rev 3596)
@@ -36967,12 +36967,18 @@
 
   <div class=impl>
 
-  <p>The <dfn id=dom-option-disabled title=dom-option-disabled><code>disabled</code></dfn>,
-  <dfn id=dom-option-label title=dom-option-label><code>label</code></dfn>, and <dfn id=dom-option-value title=dom-option-value><code>value</code></dfn> DOM attributes
-  must <a href=#reflect>reflect</a> the respective content attributes of the
-  same name. The <dfn id=dom-option-defaultselected title=dom-option-defaultSelected><code>defaultSelected</code></dfn>
+  <p>The <dfn id=dom-option-disabled title=dom-option-disabled><code>disabled</code></dfn>
+  and <dfn id=dom-option-label title=dom-option-label><code>label</code></dfn> DOM
+  attributes must <a href=#reflect>reflect</a> the respective content
+  attributes of the same name. The <dfn id=dom-option-defaultselected title=dom-option-defaultSelected><code>defaultSelected</code></dfn>
   DOM attribute must <a href=#reflect>reflect</a> the <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> content attribute.</p>
 
+  <p>The <dfn id=dom-option-value title=dom-option-value><code>value</code></dfn> DOM
+  attribute, on getting, must return the value of the element's <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute, if it has
+  one, or else the value of the element's <code>textContent</code> DOM
+  attribute. On setting, the element's <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute must be set
+  to the new value.</p>
+
   <p>The <dfn id=dom-option-selected title=dom-option-selected><code>selected</code></dfn>
   DOM attribute must return true if the element's <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> is true, and
   false otherwise.</p>
@@ -78853,6 +78859,7 @@
   Susan <!--G.--> Lesch,
   Sylvain Pasche,
   <span lang=tr title="">Tantek Çelik</span>,
+  田村健人 (TAMURA Kent),
   Ted Mielczarek,
   Terrence Wood,
   Thomas Broyer,

Modified: source
===================================================================
--- source	2009-08-12 06:34:57 UTC (rev 3595)
+++ source	2009-08-12 07:44:10 UTC (rev 3596)
@@ -38895,15 +38895,22 @@
 
   <div class="impl">
 
-  <p>The <dfn title="dom-option-disabled"><code>disabled</code></dfn>,
-  <dfn title="dom-option-label"><code>label</code></dfn>, and <dfn
-  title="dom-option-value"><code>value</code></dfn> DOM attributes
-  must <span>reflect</span> the respective content attributes of the
-  same name. The <dfn
+  <p>The <dfn title="dom-option-disabled"><code>disabled</code></dfn>
+  and <dfn title="dom-option-label"><code>label</code></dfn> DOM
+  attributes must <span>reflect</span> the respective content
+  attributes of the same name. The <dfn
   title="dom-option-defaultSelected"><code>defaultSelected</code></dfn>
   DOM attribute must <span>reflect</span> the <code
   title="attr-option-selected">selected</code> content attribute.</p>
 
+  <p>The <dfn title="dom-option-value"><code>value</code></dfn> DOM
+  attribute, on getting, must return the value of the element's <code
+  title="attr-option-value">value</code> content attribute, if it has
+  one, or else the value of the element's <code>textContent</code> DOM
+  attribute. On setting, the element's <code
+  title="attr-option-value">value</code> content attribute must be set
+  to the new value.</p>
+
   <p>The <dfn title="dom-option-selected"><code>selected</code></dfn>
   DOM attribute must return true if the element's <span
   title="concept-option-selectedness">selectedness</span> is true, and
@@ -87534,6 +87541,7 @@
   Susan <!--G.--> Lesch,
   Sylvain Pasche,
   <span title="" lang="tr">Tantek Çelik</span>,
+  田村健人 (TAMURA Kent),
   Ted Mielczarek,
   Terrence Wood,
   Thomas Broyer,




More information about the Commit-Watchers mailing list