[html5] r2168 - [] (0) WF2: Submitting to data: URLs.
whatwg at whatwg.org
whatwg at whatwg.org
Fri Sep 12 01:52:32 PDT 2008
Author: ianh
Date: 2008-09-12 01:52:31 -0700 (Fri, 12 Sep 2008)
New Revision: 2168
Modified:
index
source
Log:
[] (0) WF2: Submitting to data: URLs.
Modified: index
===================================================================
--- index 2008-09-12 08:20:17 UTC (rev 2167)
+++ index 2008-09-12 08:52:31 UTC (rev 2168)
@@ -27820,7 +27820,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>
@@ -27862,13 +27862,88 @@
<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="#refsRFC3986">[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="#refsRFC3986">[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="#refsRFC2045">[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>
Modified: source
===================================================================
--- source 2008-09-12 08:20:17 UTC (rev 2167)
+++ source 2008-09-12 08:52:31 UTC (rev 2168)
@@ -24940,7 +24940,7 @@
<dt><dfn title="submit-body">Submit as entity body</dfn>
<dd>
- <p>Let <var title="">entity body</var> be the resulting encoding
+ <p>Let <var title="">entity body</var> be the result of encoding
the <var title="">form data set</var> using the
<span>appropriate form encoding algorithm</span>.</p>
@@ -24986,11 +24986,98 @@
</dd>
<dt><dfn title="submit-data-post">Post to data:</dfn>
- <dd><p class="big-issue">...</p></dd>
+ <dd>
+ <p>Let <var title="">data</var> be the result of encoding the
+ <var title="">form data set</var> using the <span>appropriate
+ form encoding algorithm</span>.</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="#refsRFC3986">[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="#refsRFC3986">[RFC3986]</a></p>
+
+ <p>Let <var title="">target browsing context</var> be <span>the
+ form submission target browsing context</span>.</p>
+
+ <p><span>Navigate</span> <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 <span>replacement
+ enabled</span>.</p>
+
+ </dd>
+
<dt><dfn title="submit-data-put">Put to data:</dfn>
- <dd><p class="big-issue">...</p></dd>
+ <dd>
+ <p>Let <var title="">data</var> be the result of encoding the
+ <var title="">form data set</var> using the <span>appropriate
+ form encoding algorithm</span>.</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></dt>
+
+ <dd>Let <var title="">MIME type</var> be "<code
+ title="">application/x-www-form-urlencoded</code>".</dd>
+
+ <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-formdata">multpart/form-data</code></dt>
+
+ <dd>Let <var title="">MIME type</var> be "<code
+ title="">multipart/form-data</code>".</dd>
+
+ <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-text">text/plain</code></dt>
+
+ <dd>Let <var title="">MIME type</var> be "<code title="">text/plain</code>".</dd>
+
+ </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>
+
+ <li>The value of <var title="">MIME type</var>.</li>
+
+ <li>The string "<code title="">;base64,</code>".</li>
+
+ <li>A base-64 encoded representation of <var
+ title="">data</var>. <a href="#refsRFC2045">[RFC2045]</a></li>
+
+ </ol>
+
+ <p>Let <var title="">target browsing context</var> be <span>the
+ form submission target browsing context</span>.</p>
+
+ <p><span>Navigate</span> <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
+ <span>replacement enabled</span>.</p>
+
+ </dd>
+
<dt><dfn title="submit-mailto-headers">Mail with headers</dfn>
<dd><p class="big-issue">...</p></dd>
More information about the Commit-Watchers
mailing list