hixie: HTMLOptionElement.text collapses spaces. (whatwg r5466)

hixie: HTMLOptionElement.text collapses spaces. (whatwg r5466)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4358&r2=1.4359&f=h
http://html5.org/tools/web-apps-tracker?from=5465&to=5466

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4358
retrieving revision 1.4359
diff -u -d -r1.4358 -r1.4359
--- Overview.html 10 Sep 2010 09:38:28 -0000 1.4358
+++ Overview.html 10 Sep 2010 22:39:17 -0000 1.4359
@@ -33009,7 +33009,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>
 
@@ -33049,10 +33049,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>

Received on Friday, 10 September 2010 22:40:06 UTC