- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Sep 2008 08:16:24 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11153
Modified Files:
Overview.html
Log Message:
WF2: Define 'Submit as entity body', factor out some common prose to make it less redundant. (whatwg r2166)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1338
retrieving revision 1.1339
diff -u -d -r1.1338 -r1.1339
--- Overview.html 12 Sep 2008 01:01:57 -0000 1.1338
+++ Overview.html 12 Sep 2008 08:16:21 -0000 1.1339
@@ -27815,18 +27815,8 @@
replaced by <var title="">query</var> (adding a U+003F QUESTION MARK
(?) character if appropriate).</p>
- <p>If the user indicated a specific <a href="#browsing1">browsing
- context</a> to use when submitting the form, then let <var
- title="">target browsing context</var> be that <a
- href="#browsing1">browsing context</a>.</p>
-
- <p>Otherwise, apply <a href="#the-rules">the rules for choosing a
- browsing context given a browsing context name</a> using <var
- title="">target</var> as the name and the <a
- href="#browsing1">browsing context</a> of <var title="">form</var> as
- the context in which the algorithm is executed, and let <var
- title="">target browsing context</var> be the resulting <a
- href="#browsing1">browsing context</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 <var title="">destination</var>. If <var
@@ -27837,7 +27827,20 @@
<dt><dfn id=submit title=submit-body>Submit as entity body</dfn>
<dd>
- <p class=big-issue>...
+ <p>Let <var title="">entity body</var> be the resulting encoding the
+ <var title="">form data set</var> using the <a
+ href="#appropriate">appropriate form encoding algorithm</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 <var title="">action</var> using the HTTP method
+ given by <var title="">method</var> and with <var title="">entity
+ body</var> as the entity body. 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=delete title=submit-delete-action>Delete action</dfn>
@@ -27871,6 +27874,41 @@
<p class=big-issue>...
</dl>
+ <p><dfn id=the-form0>The form submission target browsing context</dfn> is
+ obtained, when needed by the behaviors described above, as follows: If
+ the user indicated a specific <a href="#browsing1">browsing context</a>
+ to use when submitting the form, then that is the target browsing
+ context. Otherwise, apply <a href="#the-rules">the rules for choosing a
+ browsing context given a browsing context name</a> using <var
+ title="">target</var> as the name and the <a href="#browsing1">browsing
+ context</a> of <var title="">form</var> as the context in which the
+ algorithm is executed; the resulting <a href="#browsing1">browsing
+ context</a> is the target browsing context.</p>
+
+ <p>The <dfn id=appropriate>appropriate form encoding algorithm</dfn> is
+ 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>Use the <a href="#applicationx-www-form-urlencoded"><code
+ title="">application/x-www-form-urlencoded</code> encoding
+ algorithm</a>.
+
+ <dt>If <var title="">enctype</var> is <code
+ title=attr-fs-enctype-formdata>multpart/form-data</code>
+
+ <dd>Use the <a href="#multipartform-data"><code
+ title="">multipart/form-data</code> encoding algorithm</a>.
+
+ <dt>If <var title="">enctype</var> is <code
+ title=attr-fs-enctype-text>text/plain</code>
+
+ <dd>Use the <a href="#textplain"><code title="">text/plain</code>
+ encoding algorithm</a>.
+ </dl>
+
<li>
<p class=big-issue>...
</ol>
@@ -27888,6 +27926,30 @@
encoding. -->
</ol>
+ <p>The <dfn id=multipartform-data><code title="">multipart/form-data</code>
+ encoding algorithm</dfn> is as follows:
+
+ <ol>
+ <li>
+ <p class=big-issue>...
+ </li>
+ <!-- During this step, the form data set is examined to ensure all
+ the characters are representable in the submission character
+ encoding. -->
+ </ol>
+
+ <p>The <dfn id=textplain><code title="">text/plain</code> encoding
+ algorithm</dfn> is as follows:
+
+ <ol>
+ <li>
+ <p class=big-issue>...
+ </li>
+ <!-- During this step, the form data set is examined to ensure all
+ the characters are representable in the submission character
+ encoding. -->
+ </ol>
+
<h3 id=scripting1><span class=secno>4.10 </span>Scripting</h3>
<p>Scripts allow authors to add interactivity to their documents.
Received on Friday, 12 September 2008 08:17:02 UTC