[html5] r6351 - [giow] (2) Fix <option> to match reality better. Fixing http://www.w3.org/Bugs/P [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 2 16:43:46 PDT 2011


Author: ianh
Date: 2011-08-02 16:43:44 -0700 (Tue, 02 Aug 2011)
New Revision: 6351

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Fix <option> to match reality better.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12602

Modified: complete.html
===================================================================
--- complete.html	2011-08-02 23:14:43 UTC (rev 6350)
+++ complete.html	2011-08-02 23:43:44 UTC (rev 6351)
@@ -48764,13 +48764,13 @@
 
   <p>The <dfn id=attr-option-label title=attr-option-label><code>label</code></dfn>
   attribute provides a label for element. The <dfn id=concept-option-label title=concept-option-label>label</dfn> of an <code><a href=#the-option-element>option</a></code>
-  element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> attribute, if there is one,
-  or the <code><a href=#textcontent>textContent</a></code> of the element, if there isn't.</p>
+  element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
 
   <p>The <dfn id=attr-option-value title=attr-option-value><code>value</code></dfn>
   attribute provides a value for element. The <dfn id=concept-option-value title=concept-option-value>value</dfn> of an <code><a href=#the-option-element>option</a></code>
-  element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> attribute, if there is one,
-  or the <code><a href=#textcontent>textContent</a></code> of the element, if there isn't.</p>
+  element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
 
   <p>The <dfn id=attr-option-selected title=attr-option-selected><code>selected</code></dfn>
   attribute is a <a href=#boolean-attribute>boolean attribute</a>. It represents the
@@ -48890,11 +48890,10 @@
 
   <p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> IDL
   attribute, on getting, must return the value of the
-  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element with leading
-  and trailing <a href=#space-character title="space character">space characters</a>
-  removed, and with any sequences of two or more <a href=#space-character title="space
-  character">space characters</a> replaced by a single U+0020 SPACE
-  character. On setting, it must act as if the
+  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element, with <a href=#strip-leading-and-trailing-whitespace title="strip leading and trailing whitespace">leading and trailing
+  whitespace stripped</a>, and with any sequences of two or more
+  <a href=#space-character title="space character">space characters</a> replaced by a
+  single U+0020 SPACE character. On setting, it must act as if the
   <code><a href=#textcontent>textContent</a></code> IDL attribute on the element had been set
   to the new value.</p>
 

Modified: index
===================================================================
--- index	2011-08-02 23:14:43 UTC (rev 6350)
+++ index	2011-08-02 23:43:44 UTC (rev 6351)
@@ -48636,13 +48636,13 @@
 
   <p>The <dfn id=attr-option-label title=attr-option-label><code>label</code></dfn>
   attribute provides a label for element. The <dfn id=concept-option-label title=concept-option-label>label</dfn> of an <code><a href=#the-option-element>option</a></code>
-  element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> attribute, if there is one,
-  or the <code><a href=#textcontent>textContent</a></code> of the element, if there isn't.</p>
+  element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
 
   <p>The <dfn id=attr-option-value title=attr-option-value><code>value</code></dfn>
   attribute provides a value for element. The <dfn id=concept-option-value title=concept-option-value>value</dfn> of an <code><a href=#the-option-element>option</a></code>
-  element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> attribute, if there is one,
-  or the <code><a href=#textcontent>textContent</a></code> of the element, if there isn't.</p>
+  element is the value of the <code title=attr-option-value><a href=#attr-option-value>value</a></code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code title=dom-option-text><a href=#dom-option-text>text</a></code> IDL attribute.</p>
 
   <p>The <dfn id=attr-option-selected title=attr-option-selected><code>selected</code></dfn>
   attribute is a <a href=#boolean-attribute>boolean attribute</a>. It represents the
@@ -48762,11 +48762,10 @@
 
   <p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> IDL
   attribute, on getting, must return the value of the
-  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element with leading
-  and trailing <a href=#space-character title="space character">space characters</a>
-  removed, and with any sequences of two or more <a href=#space-character title="space
-  character">space characters</a> replaced by a single U+0020 SPACE
-  character. On setting, it must act as if the
+  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element, with <a href=#strip-leading-and-trailing-whitespace title="strip leading and trailing whitespace">leading and trailing
+  whitespace stripped</a>, and with any sequences of two or more
+  <a href=#space-character title="space character">space characters</a> replaced by a
+  single U+0020 SPACE character. On setting, it must act as if the
   <code><a href=#textcontent>textContent</a></code> IDL attribute on the element had been set
   to the new value.</p>
 

Modified: source
===================================================================
--- source	2011-08-02 23:14:43 UTC (rev 6350)
+++ source	2011-08-02 23:43:44 UTC (rev 6351)
@@ -54629,15 +54629,17 @@
   attribute provides a label for element. The <dfn
   title="concept-option-label">label</dfn> of an <code>option</code>
   element is the value of the <code
-  title="attr-option-label">label</code> attribute, if there is one,
-  or the <code>textContent</code> of the element, if there isn't.</p>
+  title="attr-option-label">label</code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code
+  title="dom-option-text">text</code> IDL attribute.</p>
 
   <p>The <dfn title="attr-option-value"><code>value</code></dfn>
   attribute provides a value for element. The <dfn
   title="concept-option-value">value</dfn> of an <code>option</code>
   element is the value of the <code
-  title="attr-option-value">value</code> attribute, if there is one,
-  or the <code>textContent</code> of the element, if there isn't.</p>
+  title="attr-option-value">value</code> content attribute, if there
+  is one, or, if there is not, the value of the element's <code
+  title="dom-option-text">text</code> IDL attribute.</p>
 
   <p>The <dfn title="attr-option-selected"><code>selected</code></dfn>
   attribute is a <span>boolean attribute</span>. It represents the
@@ -54779,11 +54781,11 @@
 
   <p>The <dfn title="dom-option-text"><code>text</code></dfn> IDL
   attribute, on getting, must return the value of the
-  <code>textContent</code> IDL attribute on the element with leading
-  and trailing <span title="space character">space characters</span>
-  removed, and with any sequences of two or more <span title="space
-  character">space characters</span> replaced by a single U+0020 SPACE
-  character. On setting, it must act as if the
+  <code>textContent</code> IDL attribute on the element, with <span
+  title="strip leading and trailing whitespace">leading and trailing
+  whitespace stripped</span>, and with any sequences of two or more
+  <span title="space character">space characters</span> replaced by a
+  single U+0020 SPACE character. On setting, it must act as if the
   <code>textContent</code> IDL attribute on the element had been set
   to the new value.</p>
 




More information about the Commit-Watchers mailing list