spec/Overview.html 1.1341 2168 WF2: Submitting to data: URLs. (whatwg r

WF2: Submitting to data: URLs. (whatwg r2168)

Put to data:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1341.html#put-to
Post to data:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1341.html#post-to
Submit as entity body
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1341.html#submit
Mail with headers
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1341.html#mail-with

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1340&r2=1.1341&f=h
http://html5.org/tools/web-apps-tracker?from=2167&to=2168

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1340
retrieving revision 1.1341
diff -u -d -r1.1340 -r1.1341
--- Overview.html 12 Sep 2008 08:20:21 -0000 1.1340
+++ Overview.html 12 Sep 2008 08:52:35 -0000 1.1341
@@ -27827,7 +27827,7 @@
      <dt><dfn id=submit title=submit-body>Submit as entity body</dfn>
 
      <dd>
-      <p>Let <var title="">entity body</var> be the resulting encoding the
+      <p>Let <var title="">entity body</var> be the result of encoding the
        <var title="">form data set</var> using the <a
        href="#appropriate">appropriate form encoding algorithm</a>.</p>
 
@@ -27869,12 +27869,87 @@
      <dt><dfn id=post-to title=submit-data-post>Post to data:</dfn>
 
      <dd>
-      <p class=big-issue>...
+      <p>Let <var title="">data</var> be the result of encoding the <var
+       title="">form data set</var> using the <a
+       href="#appropriate">appropriate form encoding algorithm</a>.</p>
+
+      <p>If <var title="">action</var> contains the string "<code
+       title="">%%%%</code>" (four U+0025 PERCENT SIGN characters), then
+       %-escape all characters in <var title="">data</var> that do not match
+       the <code title="">unreserved</code> production in the URI Generic
+       Syntax, and then further %-escape all the U+0025 PERCENT SIGN
+       characters in the resulting string, and replace the first occurance of
+       "<code title="">%%%%</code>" in <var title="">action</var> with the
+       resulting double-escaped string. <a href="#references">[RFC3986]</a></p>
+
+      <p>Otherwise, if <var title="">action</var> contains the string "<code
+       title="">%%</code>" (two U+0025 PERCENT SIGN characters in a row, but
+       not four), then %-escape all characters in <var title="">data</var>
+       that do not match the <code title="">unreserved</code> production in
+       the URI Generic Syntax, and replace the first occurance of "<code
+       title="">%%</code>" in <var title="">action</var> with the resulting
+       escaped string. <a href="#references">[RFC3986]</a></p>
+
+      <p>Let <var title="">target browsing context</var> be <a
+       href="#the-form0">the form submission target browsing context</a>.</p>
+
+      <p><a href="#navigate">Navigate</a> <var title="">target browsing
+       context</var> to the potentially modified <var title="">action</var>.
+       If <var title="">target browsing context</var> was newly created for
+       this purpose by the steps above, then it must be navigated with <a
+       href="#replacement">replacement enabled</a>.</p>
 
      <dt><dfn id=put-to title=submit-data-put>Put to data:</dfn>
 
      <dd>
-      <p class=big-issue>...
+      <p>Let <var title="">data</var> be the result of encoding the <var
+       title="">form data set</var> using the <a
+       href="#appropriate">appropriate form encoding algorithm</a>.</p>
+
+      <p>Let <var title="">MIME type</var> be determined as follows:</p>
+
+      <dl>
+       <dt>If <var title="">enctype</var> is <code
+        title=attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</code>
+
+       <dd>Let <var title="">MIME type</var> be "<code
+        title="">application/x-www-form-urlencoded</code>".
+
+       <dt>If <var title="">enctype</var> is <code
+        title=attr-fs-enctype-formdata>multpart/form-data</code>
+
+       <dd>Let <var title="">MIME type</var> be "<code
+        title="">multipart/form-data</code>".
+
+       <dt>If <var title="">enctype</var> is <code
+        title=attr-fs-enctype-text>text/plain</code>
+
+       <dd>Let <var title="">MIME type</var> be "<code
+        title="">text/plain</code>".
+      </dl>
+
+      <p>Let <var title="">destination</var> be the result of concatenating
+       the following:</p>
+
+      <ol class=brief>
+       <li>The string "<code title="">data:</code>".
+
+       <li>The value of <var title="">MIME type</var>.
+
+       <li>The string "<code title="">;base64,</code>".
+
+       <li>A base-64 encoded representation of <var title="">data</var>. <a
+        href="#references">[RFC2045]</a>
+      </ol>
+
+      <p>Let <var title="">target browsing context</var> be <a
+       href="#the-form0">the form submission target browsing context</a>.</p>
+
+      <p><a href="#navigate">Navigate</a> <var title="">target browsing
+       context</var> to <var title="">destination</var>. If <var
+       title="">target browsing context</var> was newly created for this
+       purpose by the steps above, then it must be navigated with <a
+       href="#replacement">replacement enabled</a>.</p>
 
      <dt><dfn id=mail-with title=submit-mailto-headers>Mail with
       headers</dfn>

Received on Friday, 12 September 2008 08:56:13 UTC