Skip to content

Commit

Permalink
[giow] (2) Match reality: form submission normalises newlines.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12606

git-svn-id: http://svn.whatwg.org/webapps@6542 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 6, 2011
1 parent d132481 commit e7859b7
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 8 deletions.
21 changes: 18 additions & 3 deletions complete.html
Expand Up @@ -239,7 +239,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>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 5 September 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 6 September 2011</h2>
</hgroup><dl><dt>Multiple-page version:</dt>
<dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete/>http://www.whatwg.org/specs/web-apps/current-work/complete/</a></dd>
<dt>One-page version:</dt>
Expand Down Expand Up @@ -52489,8 +52489,23 @@ <h5 id=form-submission-algorithm><span class=secno>4.10.22.3 </span>Form submiss

</ol></li>

<li><p><i>End</i>: Return the <var title="">form data
step</var>.</li>
<li>

<p><i>End</i>: For the name and value of each entry in the <var title="">form data set</var> whose type is not "<code title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>

<p class=note>In the case of the <a href=#concept-fe-value title=concept-fe-value>value</a> of <code><a href=#the-textarea-element>textarea</a></code>
elements, this newline normalization is redundant, as it is
already normalized from its <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> for the
purposes of the DOM API.</p>

</li>

<li><p>Return the <var title="">form data set</var>.</li>

</ol></div>

Expand Down
21 changes: 18 additions & 3 deletions index
Expand Up @@ -243,7 +243,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 5 September 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 6 September 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 @@ -52356,8 +52356,23 @@ fur

</ol></li>

<li><p><i>End</i>: Return the <var title="">form data
step</var>.</li>
<li>

<p><i>End</i>: For the name and value of each entry in the <var title="">form data set</var> whose type is not "<code title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>

<p class=note>In the case of the <a href=#concept-fe-value title=concept-fe-value>value</a> of <code><a href=#the-textarea-element>textarea</a></code>
elements, this newline normalization is redundant, as it is
already normalized from its <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> for the
purposes of the DOM API.</p>

</li>

<li><p>Return the <var title="">form data set</var>.</li>

</ol></div>

Expand Down
23 changes: 21 additions & 2 deletions source
Expand Up @@ -59056,8 +59056,27 @@ fur

</li>

<li><p><i>End</i>: Return the <var title="">form data
step</var>.</p></li>
<li>

<p><i>End</i>: For the name and value of each entry in the <var
title="">form data set</var> whose type is not "<code
title="">file</code>", replace every occurrence of a U+000D
CARRIAGE RETURN (CR) character not followed by a U+000A LINE FEED
(LF) character, and every occurrence of a U+000A LINE FEED (LF)
character not preceded by a U+000D CARRIAGE RETURN (CR) character,
by a two-character string consisting of a U+000D CARRIAGE RETURN
U+000A LINE FEED (CRLF) character pair.</p>

<p class="note">In the case of the <span
title="concept-fe-value">value</span> of <code>textarea</code>
elements, this newline normalization is redundant, as it is
already normalized from its <span
title="concept-textarea-raw-value">raw value</span> for the
purposes of the DOM API.</p>

</li>

<li><p>Return the <var title="">form data set</var>.</p></li>

</ol>

Expand Down

0 comments on commit e7859b7

Please sign in to comment.