[html5] r6542 - [giow] (2) Match reality: form submission normalises newlines. Fixing http://www [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 6 00:21:41 PDT 2011


Author: ianh
Date: 2011-09-06 00:21:39 -0700 (Tue, 06 Sep 2011)
New Revision: 6542

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Match reality: form submission normalises newlines.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12606

Modified: complete.html
===================================================================
--- complete.html	2011-09-05 22:35:42 UTC (rev 6541)
+++ complete.html	2011-09-06 07:21:39 UTC (rev 6542)
@@ -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 — Last Updated 5 September 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -52489,9 +52489,24 @@
 
     </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>
 
 

Modified: index
===================================================================
--- index	2011-09-05 22:35:42 UTC (rev 6541)
+++ index	2011-09-06 07:21:39 UTC (rev 6542)
@@ -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 — Last Updated 5 September 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -52356,9 +52356,24 @@
 
     </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>
 
 

Modified: source
===================================================================
--- source	2011-09-05 22:35:42 UTC (rev 6541)
+++ source	2011-09-06 07:21:39 UTC (rev 6542)
@@ -59056,9 +59056,28 @@
 
    </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>
 
   </div>




More information about the Commit-Watchers mailing list