[html5] r2166 - [] (0) WF2: Define 'Submit as entity body', factor out some common prose to make [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 12 01:16:18 PDT 2008


Author: ianh
Date: 2008-09-12 01:16:17 -0700 (Fri, 12 Sep 2008)
New Revision: 2166

Modified:
   index
   source
Log:
[] (0) WF2: Define 'Submit as entity body', factor out some common prose to make it less redundant.

Modified: index
===================================================================
--- index	2008-09-12 01:01:53 UTC (rev 2165)
+++ index	2008-09-12 08:16:17 UTC (rev 2166)
@@ -27808,19 +27808,9 @@
        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>Let <var title="">target browsing context</var> be <a
+       href="#the-form0">the form submission target 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><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
@@ -27830,8 +27820,21 @@
      <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>
 
      <dd>
@@ -27864,6 +27867,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>
@@ -27881,6 +27919,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.

Modified: source
===================================================================
--- source	2008-09-12 01:01:53 UTC (rev 2165)
+++ source	2008-09-12 08:16:17 UTC (rev 2166)
@@ -24926,19 +24926,9 @@
       replaced by <var title="">query</var> (adding a U+003F QUESTION
       MARK (?)  character if appropriate).</p>
 
-      <p>If the user indicated a specific <span>browsing
-      context</span> to use when submitting the form, then let <var
-      title="">target browsing context</var> be that <span>browsing
-      context</span>.</p>
+      <p>Let <var title="">target browsing context</var> be <span>the
+      form submission target browsing context</span>.</p>
 
-      <p>Otherwise, apply <span>the rules for choosing a browsing
-      context given a browsing context name</span> using <var
-      title="">target</var> as the name and the <span>browsing
-      context</span> 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 <span>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
@@ -24948,8 +24938,25 @@
      </dd>
 
      <dt><dfn title="submit-body">Submit as entity body</dfn>
-     <dd><p class="big-issue">...</p></dd>
+     <dd>
 
+      <p>Let <var title="">entity body</var> be the resulting encoding
+      the <var title="">form data set</var> using the
+      <span>appropriate form encoding algorithm</span>.</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 <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
+      <span>replacement enabled</span>.</p>
+
+     </dd>
+
      <dt><dfn title="submit-delete-action">Delete action</dfn>
      <dd><p class="big-issue">...</p></dd>
 
@@ -24970,6 +24977,41 @@
 
     </dl>
 
+    <p><dfn>The form submission target browsing context</dfn> is
+    obtained, when needed by the behaviors described above, as
+    follows: If the user indicated a specific <span>browsing
+    context</span> to use when submitting the form, then that is the
+    target browsing context. Otherwise, apply <span>the rules for
+    choosing a browsing context given a browsing context name</span>
+    using <var title="">target</var> as the name and the
+    <span>browsing context</span> of <var title="">form</var> as the
+    context in which the algorithm is executed; the resulting
+    <span>browsing context</span> is the target browsing context.</p>
+
+    <p>The <dfn>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></dt>
+
+     <dd>Use the <span><code
+     title="">application/x-www-form-urlencoded</code> encoding
+     algorithm</span>.</dd>
+
+     <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-formdata">multpart/form-data</code></dt>
+
+     <dd>Use the <span><code
+     title="">multipart/form-data</code> encoding
+     algorithm</span>.</dd>
+
+     <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-text">text/plain</code></dt>
+
+     <dd>Use the <span><code title="">text/plain</code> encoding
+     algorithm</span>.</dd>
+
+    </dl>
+
    </li>
 
    <li><p class="big-issue">...</p></li>
@@ -24990,9 +25032,35 @@
 
   </ol>
 
+  <p>The <dfn><code title="">multipart/form-data</code> encoding
+  algorithm</dfn> is as follows:</p>
 
+  <ol>
 
+   <li><p class="big-issue">...</p></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><code title="">text/plain</code> encoding
+  algorithm</dfn> is as follows:</p>
+
+  <ol>
+
+   <li><p class="big-issue">...</p></li>
+
+   <!-- During this step, the form data set is examined to ensure all
+   the characters are representable in the submission character
+   encoding. -->
+
+  </ol>
+
+
+
+
   <h3>Scripting</h3>
 
   <p>Scripts allow authors to add interactivity to their documents.</p>




More information about the Commit-Watchers mailing list