spec/Overview.html 1.1491 2318 WF2: Attributes for form submission (wha

WF2: Attributes for form submission (whatwg r2318)

barred the element from constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#barred-from-constraint-validation
PUT
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-put-keyword
Put to data:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#submit-data-put
multpart/form-data
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-enctype-formdata
appropriate form encoding algorithm
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#appropriate-form-encoding-algorithm
DELETE
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-delete-keyword
text/plain
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-enctype-text
PUT
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-put
enctype
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#concept-fs-enctype
POST
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-post-keyword
target
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#concept-fs-target
candidate for constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#candidate-for-constraint-validation
application/x-www-form-urlencoded
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-enctype-urlencoded
action
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-action
enctype
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-enctype
target
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-target
action
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#dom-fs-action
POST
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-post
maximum allowed value length
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#maximum-allowed-value-length
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 whose checkedness is false. The field element is an input element whose type attribute is in the Radio Button state and whose checkedness is false. 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 whose selectedness is true, 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 Checkbox state or the Radio Button state, then then run these further nested substeps: If the field element has a value attribute specified, then let value be the value of that attribute; otherwise, let value be the string "on". Append an entry in the form data set with name as the name and value as the value. Otherwise, if the field element is an input element whose type attribute is in the File Upload state, then foreach file selected in the input element, append an entry in the form data set with the name as the name and the file (consisting of the name, the type, and the body) as the value. 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.1491.html#constructing-form-data-set
method
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method
method
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#concept-fs-method
action
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#concept-fs-action
4.10.14 Attributes for form submission
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attributes-for-form-submission
DELETE
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-delete
GET
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-get
GET
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#attr-fs-method-get-keyword
4.10.15 Constraints
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1491.html#constraints

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1490&r2=1.1491&f=h
http://html5.org/tools/web-apps-tracker?from=2317&to=2318

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1490
retrieving revision 1.1491
diff -u -d -r1.1490 -r1.1491
--- Overview.html 10 Oct 2008 00:53:30 -0000 1.1490
+++ Overview.html 10 Oct 2008 02:19:28 -0000 1.1491
@@ -22014,11 +22014,59 @@
   <a href=#maximum-allowed-value-length>maximum allowed value length</a>, then the element is
   <a href=#suffering-from-being-too-long>suffering from being too long</a>.<p>User agents may prevent the user from causing the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to be set to a value whose
   <a href=#codepoint-length>codepoint length</a> is greater than the element's
-  <a href=#maximum-allowed-value-length>maximum allowed value length</a>.<h4 id=attributes-for-form-submission><span class=secno>4.10.14 </span><dfn>Attributes for form submission</dfn></h4><p class=XXX>... <dfn id=attr-fs-action title=attr-fs-action>action</dfn> content attribute<p class=XXX>... <dfn id=dom-fs-action title=dom-fs-action>action</dfn> DOM attribute<p class=XXX>... <dfn id=concept-fs-action title=concept-fs-action>action</dfn> if present else form's else default</p><!-- XXX mozilla bug 297761 --><p class=XXX>... <dfn id=attr-fs-method title=attr-fs-method>method</dfn> content attribute<p class=XXX>... <dfn id=dom-fs-method title=dom-fs-method>method</dfn> DOM attribute<p class=XXX>... <dfn id=concept-fs-method title=concept-fs-method>method</dfn> if present else form's else default<p class=XXX>... <dfn id=attr-fs-enctype title=attr-fs-enctype>enctype</dfn> content attribute<p class=XXX>... <dfn id=dom-fs-enctype title=dom-fs-enctype>enctype</dfn> DOM attribute<p class=XXX>... <dfn id=conceptfs-enctype title=concept-fs-enctype>enctype</dfn> if present else form's else default<p class=XXX>... <dfn id=attr-fs-target title=attr-fs-target>target</dfn> content attribute<p class=XXX>... <dfn id=dom-fs-target title=dom-fs-target>target</dfn> DOM attribute<p class=XXX>... <dfn id=concept-fs-target title=concept-fs-target>target</dfn> if present else form's else base target else default</p><!-- c.f. hyperlink following --><p>Attributes for form submission can be specified both on
+  <a href=#maximum-allowed-value-length>maximum allowed value length</a>.<h4 id=attributes-for-form-submission><span class=secno>4.10.14 </span><dfn>Attributes for form submission</dfn></h4><p>Attributes for form submission can be specified both on
   <code><a href=#the-form-element>form</a></code> elements and on elements that represent buttons
   that submit forms, e.g. an <code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#submit-button-state title=attr-input-type-submit>Submit Button</a> state. The
   attributes on the buttons, when omitted, default to the values given
-  on the corresponding the <code><a href=#the-form-element>form</a></code> element.<h4 id=constraints><span class=secno>4.10.15 </span>Constraints</h4><h5 id=definitions><span class=secno>4.10.15.1 </span>Definitions</h5><p>A <a href=#category-listed title=category-listed>listed form-associated
+  on the corresponding the <code><a href=#the-form-element>form</a></code> element.<p>The <dfn id=attr-fs-action title=attr-fs-action><code>action</code></dfn> content
+  attribute, if specified, must have a value that is a <a href=#valid-url>valid
+  URL</a>.<p>The <dfn id=concept-fs-action title=concept-fs-action>action</dfn> of an element is
+  the value of the element's <code title=attr-fs-action><a href=#attr-fs-action>action</a></code> attribute, if it has one, or
+  the value of its <a href=#form-owner>form owner</a>'s <code title=attr-fs-action><a href=#attr-fs-action>action</a></code> attribute, if <em>it</em> has
+  one, or else the empty string.<p>The <dfn id=attr-fs-method title=attr-fs-method><code>method</code></dfn> content
+  attribute is an <a href=#enumerated-attribute>enumerated attribute</a> with the following
+  keywords and states:<ul><li>The keyword <dfn id=attr-fs-method-get-keyword title=attr-fs-method-GET-keyword><code>GET</code></dfn>, mapping
+   to the state <dfn id=attr-fs-method-get title=attr-fs-method-GET>GET</dfn>, indicating
+   the HTTP GET method.</li>
+
+   <li>The keyword <dfn id=attr-fs-method-post-keyword title=attr-fs-method-POST-keyword><code>POST</code></dfn>, mapping
+   to the state <dfn id=attr-fs-method-post title=attr-fs-method-POST>POST</dfn>, indicating
+   the HTTP POST method.</li>
+
+   <li>The keyword <dfn id=attr-fs-method-put-keyword title=attr-fs-method-PUT-keyword><code>PUT</code></dfn>, mapping
+   to the state <dfn id=attr-fs-method-put title=attr-fs-method-PUT>PUT</dfn>, indicating
+   the HTTP PUT method.</li>
+
+   <li>The keyword <dfn id=attr-fs-method-delete-keyword title=attr-fs-method-DELETE-keyword><code>DELETE</code></dfn>, mapping
+   to the state <dfn id=attr-fs-method-delete title=attr-fs-method-DELETE>DELETE</dfn>, indicating
+   the HTTP DELETE method.</li>
+
+  </ul><p>The <i>missing value default</i> is the <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a> state.<p>The <dfn id=concept-fs-method title=concept-fs-method>method</dfn> of an element is
+  one of those four states. If the element has a <code title=attr-fs-method><a href=#attr-fs-method>method</a></code> attribute, then the element's
+  <a href=#concept-fs-method title=concept-fs-method>method</a> is that attribute's
+  state; otherwise, it is the <a href=#form-owner>form owner</a>'s <code title=attr-fs-method><a href=#attr-fs-method>method</a></code> attribute's state.<p>The <dfn id=attr-fs-enctype title=attr-fs-enctype><code>enctype</code></dfn>
+  content attribute is an <a href=#enumerated-attribute>enumerated attribute</a> with the
+  following keywords and states:<ul><li>The "<dfn id=attr-fs-enctype-urlencoded title=attr-fs-enctype-urlencoded><code>application/x-www-form-urlencoded</code></dfn>" keyword and corresponding state.</li>
+   <li>The "<dfn id=attr-fs-enctype-formdata title=attr-fs-enctype-formdata><code>multpart/form-data</code></dfn>" keyword and corresponding state.</li>
+   <li>The "<dfn id=attr-fs-enctype-text title=attr-fs-enctype-text><code>text/plain</code></dfn>" keyword and corresponding state.</li>
+  </ul><p>The <i>missing value default</i> is the <code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code>
+  state.<p>The <dfn id=concept-fs-enctype title=concept-fs-enctype>enctype</dfn> of an element is
+  one of those four states. If the element has a <code title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code> attribute, then the element's
+  <a href=#concept-fs-enctype title=concept-fs-enctype>enctype</a> is that attribute's
+  state; otherwise, it is the <a href=#form-owner>form owner</a>'s <code title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code> attribute's state.<p>The <dfn id=attr-fs-target title=attr-fs-target><code>target</code></dfn> content
+  attribute, if present, must be a <a href=#valid-browsing-context-name-or-keyword>valid browsing context name
+  or keyword</a>.
+
+  <p>The <dfn id=concept-fs-target title=concept-fs-target>target</dfn> of an element is
+  the value of the element's <code title=attr-fs-target><a href=#attr-fs-target>target</a></code> attribute, if it has one; or
+  the value of its <a href=#form-owner>form owner</a>'s <code title=attr-fs-target><a href=#attr-fs-target>target</a></code> attribute, if <em>it</em> has
+  one; or, if one of the child nodes of <a href=#the-head-element-0>the <code>head</code>
+  element</a> is a <code><a href=#the-base-element>base</a></code> element with a <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the the value
+  of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the
+  first such <code><a href=#the-base-element>base</a></code> element; or, if there is no such
+  element, the empty string.</p><!-- c.f. hyperlink following --><p>The <dfn id=dom-fs-action title=dom-fs-action><code>action</code></dfn>, <dfn id=dom-fs-method title=dom-fs-method><code>method</code></dfn>, <dfn id=dom-fs-enctype title=dom-fs-enctype><code>enctype</code></dfn>, and <dfn id=dom-fs-target title=dom-fs-target><code>target</code></dfn> DOM attributes must
+  <a href=#reflect>reflect</a> the respective content attributes of the same
+  name.<h4 id=constraints><span class=secno>4.10.15 </span>Constraints</h4><h5 id=definitions><span class=secno>4.10.15.1 </span>Definitions</h5><p>A <a href=#category-listed title=category-listed>listed form-associated
   element</a> is a <dfn id=candidate-for-constraint-validation>candidate for constraint validation</dfn>
   unless a condition has <dfn id=barred-from-constraint-validation title="barred from constraint
   validation">barred the element from constraint
@@ -22265,6 +22313,12 @@
 
    <li><p>Let <var title="">action</var> be the <var title="">submitter</var> element's <a href=#concept-fs-action title=concept-fs-action>action</a>.</li>
 
+   <li><p>If <var title="">action</var> is the empty string, let <var title="">action</var> be <span>the document's address</span><!--
+   XXXDOCURL -->.</p> <!-- Don't ask me why. But that's what IE
+   does. It even treats action="" differently from action=" " or
+   action="#" (the latter two resolve to the base URL, the first one
+   resolves to the doc URL) -->
+
    <li><p><a href=#resolve-a-url title="resolve a url">Resolve</a> the
    <a href=#url>URL</a> <var title="">action</var>. If this fails, abort
    these steps.</li>
@@ -22288,10 +22342,10 @@
     defined below the table.</p>
 
     <table><tr><td>
-      <th> <span title=attr-fs-method-GET>GET</span>
-      <th> <span title=attr-fs-method-POST>POST</span>
-      <th> <span title=attr-fs-method-PUT>PUT</span>
-      <th> <span title=attr-fs-method-DELETE>DELETE</span>
+      <th> <a href=#attr-fs-method-get title=attr-fs-method-GET>GET</a>
+      <th> <a href=#attr-fs-method-post title=attr-fs-method-POST>POST</a>
+      <th> <a href=#attr-fs-method-put title=attr-fs-method-PUT>PUT</a>
+      <th> <a href=#attr-fs-method-delete title=attr-fs-method-DELETE>DELETE</a>
      <tr><th> <code title="">http</code>
       <td> <a href=#submit-mutate-action title=submit-mutate-action>Mutate action</a>
       <td> <a href=#submit-body title=submit-body>Submit as entity body</a>
@@ -22440,15 +22494,15 @@
       <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>
+      <dl><dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></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>
+       <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-formdata><a href=#attr-fs-enctype-formdata>multpart/form-data</a></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>
+       <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-text><a href=#attr-fs-enctype-text>text/plain</a></code></dt>
 
        <dd>Let <var title="">MIME type</var> be "<code title="">text/plain</code>".</dd>
 
@@ -22546,17 +22600,17 @@
     <p>The <dfn id=appropriate-form-encoding-algorithm>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>
+    <dl><dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-urlencoded><a href=#attr-fs-enctype-urlencoded>application/x-www-form-urlencoded</a></code></dt>
 
      <dd>Use the <a href=#application-x-www-form-urlencoded-encoding-algorithm><code title="">application/x-www-form-urlencoded</code> encoding
      algorithm</a>.</dd>
 
-     <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-formdata>multpart/form-data</code></dt>
+     <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-formdata><a href=#attr-fs-enctype-formdata>multpart/form-data</a></code></dt>
 
      <dd>Use the <a href=#multipart-form-data-encoding-algorithm><code title="">multipart/form-data</code> encoding
      algorithm</a>.</dd>
 
-     <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-text>text/plain</code></dt>
+     <dt>If <var title="">enctype</var> is <code title=attr-fs-enctype-text><a href=#attr-fs-enctype-text>text/plain</a></code></dt>
 
      <dd>Use the <a href=#text-plain-encoding-algorithm><code title="">text/plain</code> encoding
      algorithm</a>.</dd>

Received on Friday, 10 October 2008 02:24:36 UTC