- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 10 Oct 2008 02:19:31 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv24552 Modified Files: Overview.html Log Message: WF2: Attributes for form submission (whatwg r2318) Index: Overview.html =================================================================== 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:20:08 UTC