spec/Overview.html 1.1337 2164 WF2: Complete the 'construcint the form

WF2: Complete the 'construcint the form data set' subalgorithm. (whatwg
r2164)

value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#value7
4.9.4 The button element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#the-button
HTMLOptionElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#htmloptionelement
4.9.14 Constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#constraint
button
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#button
selected coordinate
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#selected
selected file
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#selected0
selected
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#selected1
Constructing the form data set. For each element field in controls, in tree order, run the following substeps: If any of the following conditions are met, then skip these substeps for this element: The field element has a datalist element ancestor. The field element is disabled. The field element is a button but it is not submitter. The field element is an input element whose type attribute is in the Checkbox state and the control is not checked. The field element is an input element whose type attribute is in the Radio Button state and the control is not checked. The field element is an input element whose type attribute is in the File Upload state but the control does not have any files selected. Otherwise, process field as follows: If the field element is an input element whose type attribute is in the Image Button state, then run these further nested substeps: If the field element has an name attribute specified and value is not the empty string, let name be that value followed by a single U+002E FULL SOP (.) character. Otherwise, let name be the empty string. Let namex be the string consisting of the concatenation of name and a single U+0078 LATIN SMALL LETTER X (x) character. Let namey be the string consisting of the concatenation of name and a single U+0079 LATIN SMALL LETTER Y (y) character. The field element is submitter, and before this algorithm was invoked the user indicated a coordinate. Let x be the x-component of the coordindate selected by the user, and let y be the y-component of the coordinate selected by the user. Append an entry in the form data set with the name namex and the value x. Append an entry in the form data set with the name namey and the value y. Skip the remaining substeps for this element: if there are any more elements in controls, return to the top of the constructing the form data set step, otherwise, jump to the next step in the overall form submission algorithm. If the field element does not have a name attribute specified, or its name attribute's value is the empty strig, skip these substeps for this element: if there are any more elements in controls, return to the top of the constructing the form data set step, otherwise, jump to the next step in the overall form submission algorithm. Let name be the value of the field element's name attribute. If the field element is a select element, then for each option element in the select element that is selected, append an entry in the form data set with the name as the name and the value of the option element as the value. Otherwise, if the field element is an input element whose type attribute is in the File Upload state, then for each file selected in the input element, append an entry in the form data set with the name as the name and the file as the value. (Both the file name and the file contents are subsequently used.) Otherwise, append an entry in the form data set with name as the name and the value of the field element as the value.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#constructing-form-data-set
disabled
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#disabled4
If form is in a Document that has no associated browsing context or whose browsing context has its sandboxed forms browsing context flag set, then abort these steps without doing anything.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#sandboxSubmitBlocked
checked
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#checked
value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#value8
Option()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#option0
Option(name)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1337.html#option1

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1336&r2=1.1337&f=h
http://html5.org/tools/web-apps-tracker?from=2163&to=2164

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1336
retrieving revision 1.1337
diff -u -d -r1.1336 -r1.1337
--- Overview.html 11 Sep 2008 00:25:37 -0000 1.1336
+++ Overview.html 11 Sep 2008 22:16:57 -0000 1.1337
@@ -26835,6 +26835,12 @@
   <p class=big-issue>... <dfn id=checked
    title=concept-input-checked>checked</dfn>
 
+  <p class=big-issue>... image: <dfn id=selected
+   title=concept-input-type-image-coordinate>selected coordinate</dfn>
+
+  <p class=big-issue>... <dfn id=selected0
+   title=concept-input-type-file-selected>selected file</dfn>
+
   <h4 id=the-button><span class=secno>4.9.4 </span>The <dfn
    id=button><code>button</code></dfn> element</h4>
 
@@ -27148,6 +27154,12 @@
 
   <p class=big-issue>...
 
+  <p class=big-issue>... <dfn id=selected1
+   title=concept-option-selected>selected</dfn>
+
+  <p class=big-issue>... <dfn id=value7
+   title=concept-option-value>value</dfn>
+
   <p class=big-issue> <dfn id=option0
    title=dom-option><code>Option()</code></dfn> <dfn id=option1
    title=dom-option-n><code>Option(<var title="">name</var>)</code></dfn>
@@ -27420,6 +27432,8 @@
   <p class=big-issue>... <dfn id=disabled4
    title=dom-fe-disabled>disabled</dfn> DOM attribute
 
+  <p class=big-issue>... <dfn id=value8 title=concept-fe-value>value</dfn>
+
   <h4 id=constraint><span class=secno>4.9.14 </span>Constraint validation</h4>
 
   <p class=big-issue>...
@@ -27466,10 +27480,10 @@
     <p>Let the <var title="">form data set</var> be a list of name/value
      pairs, initially empty.
 
-   <li>
-    <p>For each element <var title="">field</var> in <var
-     title="">controls</var>, in <a href="#tree-order">tree order</a>, run
-     the following substeps:</p>
+   <li id=constructing-form-data-set>
+    <p><strong>Constructing the form data set</strong>. For each element <var
+     title="">field</var> in <var title="">controls</var>, in <a
+     href="#tree-order">tree order</a>, run the following substeps:</p>
 
     <ol>
      <li>
@@ -27480,14 +27494,6 @@
        <li>The <var title="">field</var> element has a <code><a
         href="#datalist">datalist</a></code> element ancestor.
 
-       <li>The <var title="">field</var> element does not have a <code
-        title=attr-fe-name><a href="#name9">name</a></code> attribute
-        specified, or its <code title=attr-fe-name><a
-        href="#name9">name</a></code> attribute's value is the empty string,
-        and it is not an <code><a href="#input0">input</a></code> elements
-        whose <code title=attr-input-type>type</code> attribute is in the
-        <span title=attr-input-type-image-state>Image Button</span> state.
-
        <li>The <var title="">field</var> element is <a href="#disabled2"
         title=concept-fe-disabled>disabled</a>.
 
@@ -27516,7 +27522,105 @@
         control does not have any files selected.
       </ul>
 
-     <li class=big-issue>...
+      <p>Otherwise, process <var title="">field</var> as follows:</p>
+
+     <li>
+      <p>If the <var title="">field</var> element is an <code><a
+       href="#input0">input</a></code> element whose <code
+       title=attr-input-type>type</code> attribute is in the <span
+       title=attr-input-type-image-state>Image Button</span> state, then run
+       these further nested substeps:</p>
+
+      <ol>
+       <li>
+        <p>If the <var title="">field</var> element has an <code
+         title=attr-fe-name><a href="#name9">name</a></code> attribute
+         specified and value is not the empty string, let <var
+         title="">name</var> be that value followed by a single U+002E FULL
+         STOP (.) character. Otherwise, let <var title="">name</var> be the
+         empty string.
+
+       <li>
+        <p>Let <var title="">name<sub title="">x</sub></var> be the string
+         consisting of the concatenation of <var title="">name</var> and a
+         single U+0078 LATIN SMALL LETTER X (x) character.
+
+       <li>
+        <p>Let <var title="">name<sub title="">y</sub></var> be the string
+         consisting of the concatenation of <var title="">name</var> and a
+         single U+0079 LATIN SMALL LETTER Y (y) character.
+
+       <li>
+        <p>The <var title="">field</var> element is <var
+         title="">submitter</var>, and before this algorithm was invoked the
+         user <a href="#selected"
+         title=concept-input-type-image-coordinate>indicated a
+         coordinate</a>. Let <var title="">x</var> be the x-component of the
+         coordindate selected by the user, and let <var title="">y</var> be
+         the y-component of the coordinate selected by the user.
+
+       <li>
+        <p>Append an entry in the <var title="">form data set</var> with the
+         name <var title="">name<sub title="">x</sub></var> and the value
+         <var title="">x</var>.
+
+       <li>
+        <p>Append an entry in the <var title="">form data set</var> with the
+         name <var title="">name<sub title="">y</sub></var> and the value
+         <var title="">y</var>.
+
+       <li>
+        <p>Skip the remaining substeps for this element: if there are any
+         more elements in <var title="">controls</var>, return to the top of
+         the <a href="#constructing-form-data-set">constructing the form data
+         set</a> step, otherwise, jump to the next step in the overall form
+         submission algorithm.
+      </ol>
+
+     <li>
+      <p>If the <var title="">field</var> element does not have a <code
+       title=attr-fe-name><a href="#name9">name</a></code> attribute
+       specified, or its <code title=attr-fe-name><a
+       href="#name9">name</a></code> attribute's value is the empty string,
+       skip these substeps for this element: if there are any more elements
+       in <var title="">controls</var>, return to the top of the <a
+       href="#constructing-form-data-set">constructing the form data set</a>
+       step, otherwise, jump to the next step in the overall form submission
+       algorithm.
+
+     <li>
+      <p>Let <var title="">name</var> be the value of the <var
+       title="">field</var> element's <code title=attr-fe-name><a
+       href="#name9">name</a></code> attribute.
+
+     <li>
+      <p>If the <var title="">field</var> element is a <code><a
+       href="#select">select</a></code> element, then for each <code><a
+       href="#option">option</a></code> element in the <code><a
+       href="#select">select</a></code> element that is <a href="#selected1"
+       title=concept-option-selected>selected</a>, append an entry in the
+       <var title="">form data set</var> with the <var title="">name</var> as
+       the name and the <a href="#value7"
+       title=concept-option-value>value</a> of the <code><a
+       href="#option">option</a></code> element as the value.
+
+     <li>
+      <p>Otherwise, if the <var title="">field</var> element is an <code><a
+       href="#input0">input</a></code> element whose <code
+       title=attr-input-type>type</code> attribute is in the <span
+       title=attr-input-type-file-state>File Upload</span> state, then for
+       each file <a href="#selected0"
+       title=concept-input-type-file-selected>selected</a> in the <code><a
+       href="#input0">input</a></code> element, append an entry in the <var
+       title="">form data set</var> with the <var title="">name</var> as the
+       name and the file as the value. (Both the file name and the file
+       contents are subsequently used.)
+
+     <li>
+      <p>Otherwise, append an entry in the <var title="">form data set</var>
+       with <var title="">name</var> as the name and the <a href="#value8"
+       title=concept-fe-value>value</a> of the <var title="">field</var>
+       element as the value.
     </ol>
 
    <li>

Received on Thursday, 11 September 2008 22:20:45 UTC