Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) HTMLOptionElement.text collapses spaces.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10301

git-svn-id: http://svn.whatwg.org/webapps@5466 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 10, 2010
1 parent 1eec5c0 commit a799962
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
14 changes: 9 additions & 5 deletions complete.html
Expand Up @@ -43823,7 +43823,7 @@ <h4 id=the-option-element><span class=secno>4.10.12 </span>The <dfn><code>option

<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>

Expand Down Expand Up @@ -43863,10 +43863,14 @@ <h4 id=the-option-element><span class=secno>4.10.12 </span>The <dfn><code>option
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>
Expand Down
14 changes: 9 additions & 5 deletions index
Expand Up @@ -43803,7 +43803,7 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<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>

Expand Down Expand Up @@ -43843,10 +43843,14 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
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>
Expand Down
14 changes: 9 additions & 5 deletions source
Expand Up @@ -49047,7 +49047,7 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<dd>

<p>Same as <code>textContent</code>.</p>
<p>Same as <code>textContent</code>, except that spaces are collapsed.</p>

</dd>

Expand Down Expand Up @@ -49096,10 +49096,14 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
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>
Expand Down

0 comments on commit a799962

Please sign in to comment.