- From: poot <cvsmail@w3.org>
- Date: Tue, 6 Apr 2010 10:49:09 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Update the form submission algorithm to match reality more closely. (whatwg r4977) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3999&r2=1.4000&f=h http://html5.org/tools/web-apps-tracker?from=4976&to=4977 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3999 retrieving revision 1.4000 diff -u -d -r1.3999 -r1.4000 --- Overview.html 6 Apr 2010 00:52:21 -0000 1.3999 +++ Overview.html 6 Apr 2010 01:48:52 -0000 1.4000 @@ -33929,10 +33929,6 @@ false.</li> <li>The <var title="">field</var> element is 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="#file-upload-state" title="attr-input-type-file">File Upload</a> state but - the control does not have any files selected.</li> - - <li>The <var title="">field</var> element is an <code><a href="#the-object-element">object</a></code> element that is not using a <a href="#plugin">plugin</a>.</li> @@ -34026,8 +34022,13 @@ each file <a href="#concept-input-type-file-selected" title="concept-input-type-file-selected">selected</a> in the <code><a href="#the-input-element">input</a></code> element, append an entry in the <var title="">form data set</var> with the <var title="">name</var> as the name, the file (consisting of the name, the type, and the - body) as the value, and <var title="">type</var> as the - type.</li> + body) as the value, and <var title="">type</var> as the type. If + there are no <a href="#concept-input-type-file-selected" title="concept-input-type-file-selected">selected files</a>, + then append an entry in the <var title="">form data set</var> + with the <var title="">name</var> as the name, the empty string + as the value, and <code title="">application/octet-stream</code> + as the type.</li> + <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=529859 --> <li><p>Otherwise, if the <var title="">field</var> element is an <code><a href="#the-object-element">object</a></code> element: try to obtain a form submission @@ -34537,7 +34538,10 @@ <p>Each entry in the <var title="">form data set</var> is a <i>field</i>, the name of the entry is the <i>field name</i> and the - value of the entry is the <i>field value</i>.</p> + value of the entry is the <i>field value</i>, unless the entry's + name is "<code title="">_charset_</code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the + character encoding used by the aforementioned algorithm to encode + the value of the field.</p> <p>The order of parts must be the same as the order of fields in the <var title="">form data set</var>. Multiple entries with the same
Received on Tuesday, 6 April 2010 01:49:38 UTC