- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Sep 2008 08:52:37 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv18233
Modified Files:
Overview.html
Log Message:
WF2: Submitting to data: URLs. (whatwg r2168)
Index: Overview.html
===================================================================
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:53:18 UTC