[html5] r5466 - [giow] (2) HTMLOptionElement.text collapses spaces. Fixing http://www.w3.org/Bug [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 10 15:39:13 PDT 2010


Author: ianh
Date: 2010-09-10 15:39:11 -0700 (Fri, 10 Sep 2010)
New Revision: 5466

Modified:
   complete.html
   index
   source
Log:
[giow] (2) HTMLOptionElement.text collapses spaces.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10301

Modified: complete.html
===================================================================
--- complete.html	2010-09-10 09:38:23 UTC (rev 5465)
+++ complete.html	2010-09-10 22:39:11 UTC (rev 5466)
@@ -43823,7 +43823,7 @@
 
    <dd>
 
-    <p>Same as <code><a href=#textcontent>textContent</a></code>.</p>
+    <p>Same as <code><a href=#textcontent>textContent</a></code>, except that spaces are collapsed.</p>
 
    </dd>
 
@@ -43863,10 +43863,14 @@
   attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.</p>
 
   <p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> IDL
-  attribute, on getting, must return the same value as the
-  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element, and on
-  setting, 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>
+  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 had been set
+  to the new value.</p>
 
   <p>The <dfn id=dom-option-form title=dom-option-form><code>form</code></dfn> IDL
   attribute's behavior depends on whether the <code><a href=#the-option-element>option</a></code>

Modified: index
===================================================================
--- index	2010-09-10 09:38:23 UTC (rev 5465)
+++ index	2010-09-10 22:39:11 UTC (rev 5466)
@@ -43803,7 +43803,7 @@
 
    <dd>
 
-    <p>Same as <code><a href=#textcontent>textContent</a></code>.</p>
+    <p>Same as <code><a href=#textcontent>textContent</a></code>, except that spaces are collapsed.</p>
 
    </dd>
 
@@ -43843,10 +43843,14 @@
   attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.</p>
 
   <p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> IDL
-  attribute, on getting, must return the same value as the
-  <code><a href=#textcontent>textContent</a></code> IDL attribute on the element, and on
-  setting, 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>
+  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 had been set
+  to the new value.</p>
 
   <p>The <dfn id=dom-option-form title=dom-option-form><code>form</code></dfn> IDL
   attribute's behavior depends on whether the <code><a href=#the-option-element>option</a></code>

Modified: source
===================================================================
--- source	2010-09-10 09:38:23 UTC (rev 5465)
+++ source	2010-09-10 22:39:11 UTC (rev 5466)
@@ -49047,7 +49047,7 @@
 
    <dd>
 
-    <p>Same as <code>textContent</code>.</p>
+    <p>Same as <code>textContent</code>, except that spaces are collapsed.</p>
 
    </dd>
 
@@ -49096,10 +49096,14 @@
   title="concept-option-index">index</span>.</p>
 
   <p>The <dfn title="dom-option-text"><code>text</code></dfn> IDL
-  attribute, on getting, must return the same value as the
-  <code>textContent</code> IDL attribute on the element, and on
-  setting, must act as if the <code>textContent</code> IDL attribute
-  on the element had been set to the new value.</p>
+  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 had been set
+  to the new value.</p>
 
   <p>The <dfn title="dom-option-form"><code>form</code></dfn> IDL
   attribute's behavior depends on whether the <code>option</code>




More information about the Commit-Watchers mailing list