Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) compat changes for <textarea>.value and .textLength
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13983

git-svn-id: http://svn.whatwg.org/webapps@6815 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 3, 2011
1 parent 132b83d commit 3fd713a
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 10 deletions.
31 changes: 27 additions & 4 deletions complete.html
Expand Up @@ -240,7 +240,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 2 November 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 3 November 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -50023,7 +50023,29 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text

<div class=impl>

<p>The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
<p>For historical reasons, the element's value is normalised in
three different ways for three different purposes. The <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> is the value as
it was originally set. It is not normalized. The <a href=#concept-textarea-api-value title=concept-textarea-api-value>API value</a> is the value
used in the <code title=dom-textarea-value><a href=#dom-textarea-value>value</a></code> IDL
attribute. It is normalized so that line breaks use U+000A LINE FEED
(LF) characters. Finally, there is the form submission <a href=#concept-fe-value title=concept-fe-value>value</a>. It is normalized so that line
breaks use U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF) character
pairs, and in addition, if necessary given the element's <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute, additional line
breaks are inserted to wrap the text at the given width.</p>

<p>The element's <dfn id=concept-textarea-api-value title=concept-textarea-api-value>API
value</dfn> is defined to be the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with the
following transformation applied:</p>

<ol><li><p>Replace every U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair from the <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with a single
U+000A LINE FEED (CRLF) character.</li>

<li><p>Replace every remaining U+000D CARRIAGE RETURN character from
the <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with
a single U+000A LINE FEED (CRLF) character.</li>

</ol><p>The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
defined to be the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with the
following transformation applied:</p>

Expand Down Expand Up @@ -50149,7 +50171,7 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text
IDL attribute.</p>

<p>The <dfn id=dom-textarea-value title=dom-textarea-value><code>value</code></dfn>
attribute must, on getting, return the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a>; on setting, it
attribute must, on getting, return the element's <a href=#concept-textarea-api-value title=concept-textarea-api-value>API value</a>; on setting, it
must set the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw
value</a> to the new value, set the element's <a href=#concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</a> to true, and
should then move the text entry cursor position to the end of the
Expand All @@ -50158,7 +50180,8 @@ <h4 id=the-textarea-element><span class=secno>4.10.13 </span>The <dfn><code>text

<p>The <dfn id=dom-textarea-textlength title=dom-textarea-textLength><code>textLength</code></dfn> IDL
attribute must return the <a href=#code-point-length>code-point length</a> of the
element's <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
element's <a href=#concept-textarea-api-value title=concept-textarea-api-value>API
value</a>.</p>

<p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>, <code title=dom-cva-validity><a href=#dom-cva-validity>validity</a></code>, and <code title=dom-cva-validationMessage><a href=#dom-cva-validationmessage>validationMessage</a></code>
attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code>
Expand Down
31 changes: 27 additions & 4 deletions index
Expand Up @@ -240,7 +240,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 2 November 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 3 November 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -50023,7 +50023,29 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<div class=impl>

<p>The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
<p>For historical reasons, the element's value is normalised in
three different ways for three different purposes. The <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> is the value as
it was originally set. It is not normalized. The <a href=#concept-textarea-api-value title=concept-textarea-api-value>API value</a> is the value
used in the <code title=dom-textarea-value><a href=#dom-textarea-value>value</a></code> IDL
attribute. It is normalized so that line breaks use U+000A LINE FEED
(LF) characters. Finally, there is the form submission <a href=#concept-fe-value title=concept-fe-value>value</a>. It is normalized so that line
breaks use U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF) character
pairs, and in addition, if necessary given the element's <code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code> attribute, additional line
breaks are inserted to wrap the text at the given width.</p>

<p>The element's <dfn id=concept-textarea-api-value title=concept-textarea-api-value>API
value</dfn> is defined to be the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with the
following transformation applied:</p>

<ol><li><p>Replace every U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair from the <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with a single
U+000A LINE FEED (CRLF) character.</li>

<li><p>Replace every remaining U+000D CARRIAGE RETURN character from
the <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with
a single U+000A LINE FEED (CRLF) character.</li>

</ol><p>The element's <a href=#concept-fe-value title=concept-fe-value>value</a> is
defined to be the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> with the
following transformation applied:</p>

Expand Down Expand Up @@ -50149,7 +50171,7 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
IDL attribute.</p>

<p>The <dfn id=dom-textarea-value title=dom-textarea-value><code>value</code></dfn>
attribute must, on getting, return the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a>; on setting, it
attribute must, on getting, return the element's <a href=#concept-textarea-api-value title=concept-textarea-api-value>API value</a>; on setting, it
must set the element's <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw
value</a> to the new value, set the element's <a href=#concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</a> to true, and
should then move the text entry cursor position to the end of the
Expand All @@ -50158,7 +50180,8 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<p>The <dfn id=dom-textarea-textlength title=dom-textarea-textLength><code>textLength</code></dfn> IDL
attribute must return the <a href=#code-point-length>code-point length</a> of the
element's <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
element's <a href=#concept-textarea-api-value title=concept-textarea-api-value>API
value</a>.</p>

<p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>, <code title=dom-cva-validity><a href=#dom-cva-validity>validity</a></code>, and <code title=dom-cva-validationMessage><a href=#dom-cva-validationmessage>validationMessage</a></code>
attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code>
Expand Down
37 changes: 35 additions & 2 deletions source
Expand Up @@ -56071,6 +56071,38 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<div class="impl">

<p>For historical reasons, the element's value is normalised in
three different ways for three different purposes. The <span
title="concept-textarea-raw-value">raw value</span> is the value as
it was originally set. It is not normalized. The <span
title="concept-textarea-api-value">API value</span> is the value
used in the <code title="dom-textarea-value">value</code> IDL
attribute. It is normalized so that line breaks use U+000A LINE FEED
(LF) characters. Finally, there is the form submission <span
title="concept-fe-value">value</span>. It is normalized so that line
breaks use U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF) character
pairs, and in addition, if necessary given the element's <code
title="attr-textarea-wrap">wrap</code> attribute, additional line
breaks are inserted to wrap the text at the given width.</p>

<p>The element's <dfn title="concept-textarea-api-value">API
value</dfn> is defined to be the element's <span
title="concept-textarea-raw-value">raw value</span> with the
following transformation applied:</p>

<ol>

<li><p>Replace every U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF)
character pair from the <span
title="concept-textarea-raw-value">raw value</span> with a single
U+000A LINE FEED (CRLF) character.</p></li>

<li><p>Replace every remaining U+000D CARRIAGE RETURN character from
the <span title="concept-textarea-raw-value">raw value</span> with
a single U+000A LINE FEED (CRLF) character.</p></li>

</ol>

<p>The element's <span title="concept-fe-value">value</span> is
defined to be the element's <span
title="concept-textarea-raw-value">raw value</span> with the
Expand Down Expand Up @@ -56228,7 +56260,7 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<p>The <dfn title="dom-textarea-value"><code>value</code></dfn>
attribute must, on getting, return the element's <span
title="concept-textarea-raw-value">raw value</span>; on setting, it
title="concept-textarea-api-value">API value</span>; on setting, it
must set the element's <span title="concept-textarea-raw-value">raw
value</span> to the new value, set the element's <span
title="concept-textarea-dirty">dirty value flag</span> to true, and
Expand All @@ -56239,7 +56271,8 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<p>The <dfn
title="dom-textarea-textLength"><code>textLength</code></dfn> IDL
attribute must return the <span>code-point length</span> of the
element's <span title="concept-fe-value">value</span>.</p>
element's <span title="concept-textarea-api-value">API
value</span>.</p>

<p>The <code title="dom-cva-willValidate">willValidate</code>, <code
title="dom-cva-validity">validity</code>, and <code
Expand Down

0 comments on commit 3fd713a

Please sign in to comment.