HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6542

SVNBugCommentTime (UTC)
654212606[Gecko] [Internet Explorer] [Opera] [Webkit] Match reality: form submission normalises newlines.2011-09-06 07:21
Index: source
===================================================================
--- source	(revision 6541)
+++ source	(revision 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>

|