- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 03 Oct 2008 07:33:04 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv25251
Modified Files:
Overview.html
Log Message:
WF2: <input type=file> and some editorial fallout. (whatwg r2274)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1446
retrieving revision 1.1447
diff -u -d -r1.1446 -r1.1447
--- Overview.html 3 Oct 2008 02:11:09 -0000 1.1446
+++ Overview.html 3 Oct 2008 07:33:02 -0000 1.1447
@@ -459,7 +459,7 @@
<li><a href=#range-state><span class=secno>4.10.4.1.13 </span>Range state</a></li>
<li><a href=#checkbox-state><span class=secno>4.10.4.1.14 </span>Checkbox state</a></li>
<li><a href=#radio-button-state><span class=secno>4.10.4.1.15 </span>Radio Button state</a></li>
- <li><a href=#file-state><span class=secno>4.10.4.1.16 </span>File state</a></li>
+ <li><a href=#file-upload-state><span class=secno>4.10.4.1.16 </span>File Upload state</a></li>
<li><a href=#submit-button-state><span class=secno>4.10.4.1.17 </span>Submit Button state</a></li>
<li><a href=#image-button-state><span class=secno>4.10.4.1.18 </span>Image Button state</a></li>
<li><a href=#reset-button-state><span class=secno>4.10.4.1.19 </span>Reset Button state</a></li>
@@ -18708,7 +18708,7 @@
<td> An enumerated value
<td> A radio button
<tr><td> <dfn id=attr-input-type-file-keyword title=attr-input-type-file-keyword><code>file</code></dfn>
- <td> <a href=#file-state title=attr-input-type-file>File</a>
+ <td> <a href=#file-upload-state title=attr-input-type-file>File Upload</a>
<td> Zero or more files each with a MIME type and optionally a file name
<td> A label and a button
<tr><td> <dfn id=attr-input-type-submit-keyword title=attr-input-type-submit-keyword><code>submit</code></dfn>
@@ -18749,7 +18749,7 @@
<th> <span><a href=#range-state title=attr-input-type-range>Range</a></span>
<th> <span><a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a>,</span>
<span><a href=#radio-button-state title=attr-input-type-radio>Radio Button</a></span>
- <th> <span><a href=#file-state title=attr-input-type-file>File</a></span>
+ <th> <span><a href=#file-upload-state title=attr-input-type-file>File Upload</a></span>
<th> <span><a href=#submit-button-state title=attr-input-type-submit>Submit Button</a></span>
<th> <span><a href=#image-button-state title=attr-input-type-image>Image Button</a></span>
<th> <span><a href=#reset-button-state title=attr-input-type-reset>Reset Button</a>,</span>
@@ -19330,8 +19330,9 @@
</table><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute changes state, and
when the element is first created, the element's rendering and
behaviour must change to the new state's accordingly and the
- <dfn id=value-sanitization-algorithm>value sanitization algorithm</dfn> defined for the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's new state must be
- invoked.<p>Each <code><a href=#the-input-element>input</a></code> element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, which is exposed by the <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute. Some states
+ <dfn id=value-sanitization-algorithm>value sanitization algorithm</dfn>, if one is defined for the
+ <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's new state,
+ must be invoked.<p>Each <code><a href=#the-input-element>input</a></code> element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, which is exposed by the <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute. Some states
define an <dfn id=concept-input-value-string-number title=concept-input-value-string-number>algorithm
to convert a string to a number</dfn>, an <dfn id=concept-input-value-number-string title=concept-input-value-number-string>algorithm to convert a
number to a string</dfn>, an <dfn id=concept-input-value-string-date title=concept-input-value-string-date>algorithm to convert a
@@ -19355,8 +19356,8 @@
have a <i title=concept-input-value-dirty><a href=#concept-input-value-dirty>dirty value</a></i>, the
user agent must set the <a href=#concept-fe-value title=concept-fe-value>value</a>
of the element to the value of the <code title=attr-input-value><a href=#attr-input-value>value</a></code> content attribute, if there is
- one, or the empty string otherwise, and run the <a href=#value-sanitization-algorithm>value
- sanitization algorithm</a>.<p>Each <code><a href=#the-input-element>input</a></code> element has a <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a>, which is exposed by
+ one, or the empty string otherwise, and then run the current
+ <a href=#value-sanitization-algorithm>value sanitization algorithm</a>, if one is defined.<p>Each <code><a href=#the-input-element>input</a></code> element has a <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a>, which is exposed by
the <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code> DOM
attribute.<p>Each <code><a href=#the-input-element>input</a></code> element has a boolean <dfn id=concept-input-checked-dirty-flag title=concept-input-checked-dirty-flag>dirty checkedness
flag</dfn>. When it is true, the element is said to have a <dfn id=concept-input-checked-dirty title=concept-input-checked-dirty><i>dirty
@@ -19379,7 +19380,8 @@
if there is one, or the empty string otherwise, set the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of the element to true
if the element has a <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code>
content attribute and false if it does not, and then invoke the
- <a href=#value-sanitization-algorithm>value sanitization algorithm</a> defined for the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state.<p>Each <code><a href=#the-input-element>input</a></code> element has a boolean <dfn id=concept-input-mutability title=concept-input-mutability>mutability flag</dfn>. When it is
+ <a href=#value-sanitization-algorithm>value sanitization algorithm</a>, if the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
+ defines one.<p>Each <code><a href=#the-input-element>input</a></code> element has a boolean <dfn id=concept-input-mutability title=concept-input-mutability>mutability flag</dfn>. When it is
true, the element is said to be <dfn id=concept-input-mutable title=concept-input-mutable><i>mutable</i></dfn>, and when it is
false the element is <dfn id=concept-input-immutable title=concept-input-immutable><i>immutable</i></dfn>. Unless
otherwise specified, an <code><a href=#the-input-element>input</a></code> element is always <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>. Unless otherwise
@@ -19415,8 +19417,7 @@
intended to be examined or manipulated by the user.<p><strong>Constraint validation:</strong> If an <code><a href=#the-input-element>input</a></code>
element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
the <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> state, it is
- <a href=#barred-from-constraint-validation>barred from constraint validation</a>.<p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p>If the <code title=attr-input-value><a href=#attr-input-value>name</a></code> attribute is
+ <a href=#barred-from-constraint-validation>barred from constraint validation</a>.<p>If the <code title=attr-input-value><a href=#attr-input-value>name</a></code> attribute is
present and has a value that is a <a href=#case-sensitive>case-sensitive</a> match
for the string "<code title="">_charset_</code>", then the element's
<code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute must be
@@ -20215,8 +20216,7 @@
is true, the control represents a positive selection, and if it is
false, a negative selection.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
the user should allow the user to toggle the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state.<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and its <span title=concept-fe-checkedness>checkedness</span> is false, then the
- element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p><!-- XXX event timing; activation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p>The following common <code><a href=#the-input-element>input</a></code> element content
+ element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p><!-- XXX event timing; activation behavior --><p>The following common <code><a href=#the-input-element>input</a></code> element content
attributes and DOM attributes apply to the element:
<code title=attr-input-checked><a href=#attr-input-checked>checked</a></code>, and
<code title=attr-input-required><a href=#attr-input-required>required</a></code> content attributes;
@@ -20285,8 +20285,7 @@
<code><a href=#the-input-element>input</a></code> elements in the <i><a href=#radio-button-group>radio button group</a></i> have a
<span title=concept-fe-checkedness>checkedness</span> that is
false, then the element is <a href=#suffering-from-being-missing>suffering from being
- missing</a>.</p><!-- XXX event timing; activation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p>The following common <code><a href=#the-input-element>input</a></code> element content
+ missing</a>.</p><!-- XXX event timing; activation behavior --><p>The following common <code><a href=#the-input-element>input</a></code> element content
attributes and DOM attributes apply to the element:
<code title=attr-input-checked><a href=#attr-input-checked>checked</a></code> and
<code title=attr-input-required><a href=#attr-input-required>required</a></code> content attributes;
@@ -20315,9 +20314,16 @@
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and
<code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes;
<code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
- <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.<h6 id=file-state><span class=secno>4.10.4.1.16 </span><dfn title=attr-input-type-file>File</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#file-state title=attr-input-type-file>File</a> state, the rules in this
- section apply.<p class=XXX>...<p>The element's <code title=attr-input-value><a href=#attr-input-value>value</a></code>
- attribute must be omitted.<p>The <dfn id=attr-input-accept title=attr-input-accept><code>accept</code></dfn>
+ <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.<h6 id=file-upload-state><span class=secno>4.10.4.1.16 </span><dfn title=attr-input-type-file>File Upload</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <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, the rules in this
+ section apply.<p>The <code><a href=#the-input-element>input</a></code> element represents a list of <dfn id=concept-input-type-file-selected title=concept-input-type-file-selected>selected files</dfn>, each
+ file consisting of a file name, a file type, and a file body (the
+ contents of the file).<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
+ the user should allow the user to change the files on the list,
+ e.g. adding or removing files. Files can be from the filesystem or
+ created on the fly, e.g. a picture taken from a camera connected to
+ the user's device.<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a> is
+ empty, then the element is <a href=#suffering-from-being-missing>suffering from being
+ missing</a>.<p>There must be no more than one file in the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>.</p><hr><p>The <dfn id=attr-input-accept title=attr-input-accept><code>accept</code></dfn>
attribute may be specified to provide user agents with a hint of
what file types the server will be able to accept.<p>If specified, the attribute must consist of a <a href=#set-of-comma-separated-tokens>set of
comma-separated tokens</a>, each of which must be an <a href=#ascii-case-insensitive>ASCII
@@ -20337,19 +20343,45 @@
<dd>Indicates that files of the specified type are accepted. <a href=#references>RFC[2046]</a></dd>
- </dl><p>The values must not be <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
- matches for any of the other values (i.e. duplicates are not
- allowed).</p><!-- XXX the selected file(s) must either have the given types or be of the given category --><p class=XXX>... list of <dfn id=concept-input-type-file-selected title=concept-input-type-file-selected>selected files</dfn><p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a> is
- empty, then the element is <a href=#suffering-from-being-missing>suffering from being
- missing</a>.<h6 id=submit-button-state><span class=secno>4.10.4.1.17 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <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 rules
+ </dl><p>The tokens must not be <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
+ matches for any of the other tokens (i.e. duplicates are not
+ allowed).<p>User agents should prevent the user from selecting files that are
+ not accepted by one (or more) of these tokens.</p><hr><p>The following common <code><a href=#the-input-element>input</a></code> element content
+ attributes apply to the element:
+ <code title=attr-input-accept><a href=#attr-input-accept>accept</a></code> and
+ <code title=attr-input-required><a href=#attr-input-required>required</a></code>.<p>The following content attributes must not be specified and do not
+ apply to the element:
+ <code class=no-backref title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
+ <code class=no-backref title=attr-input-alt><a href=#attr-input-alt>alt</a></code>,
+ <code class=no-backref title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>,
+ <code class=no-backref title=attr-input-checked><a href=#attr-input-checked>checked</a></code>,
+ <code class=no-backref title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code>,
+ <code class=no-backref title=attr-input-list><a href=#attr-input-list>list</a></code>,
+ <code class=no-backref title=attr-input-max><a href=#attr-input-max>max</a></code>,
+ <code class=no-backref title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>,
+ <code class=no-backref title=attr-fs-method><a href=#attr-fs-method>method</a></code>,
+ <code class=no-backref title=attr-input-min><a href=#attr-input-min>min</a></code>,
+ <code class=no-backref title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>,
+ <code class=no-backref title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>,
+ <code class=no-backref title=attr-input-size><a href=#attr-input-size>size</a></code>,
+ <code class=no-backref title=attr-input-src><a href=#attr-input-src>src</a></code>,
+ <code class=no-backref title=attr-input-step><a href=#attr-input-step>step</a></code>, and
+ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>.<p>The following DOM attributes and methods do not apply to the element:
+ <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>,
+ <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>,
+ <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>,
+ <code class=no-backref title=dom-input-value><a href=#dom-input-value>value</a></code>,
+ <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and
+ <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes;
+ <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
+ <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.<h6 id=submit-button-state><span class=secno>4.10.4.1.17 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <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 rules
in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element represents a button that, when
activated, submits the form. If the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, the button's label
must be the value of that attribute; otherwise, it must be an
implementation-defined string that means "Submit" or some such.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
the user should allow the user to activate the element.</p><!-- XXX event timing; activation behavior --><p>When the element is activated, if the element has a <a href=#form-owner>form
owner</a>, the element must <a href=#concept-form-submit title=concept-form-submit>submit</a> the <a href=#form-owner>form
- owner</a> from the <code><a href=#the-input-element>input</a></code> element.<p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p>The following common <code><a href=#the-input-element>input</a></code> element content
+ owner</a> from the <code><a href=#the-input-element>input</a></code> element.<p>The following common <code><a href=#the-input-element>input</a></code> element content
attributes and DOM attributes apply to the element:
<code title=attr-fs-action><a href=#attr-fs-action>action</a></code>,
<code title=attr-fs-enctype><a href=#attr-fs-enctype>enctype</a></code>,
@@ -20387,8 +20419,7 @@
implementation-defined string that means "Reset" or some such.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
the user should allow the user to activate the element.</p><!-- XXX event timing; activation behavior --><p>When the element is activated, if the element has a <a href=#form-owner>form
owner</a>, the element must <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form
- owner</a>.<p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p><strong>Constraint validation:</strong> The element is
+ owner</a>.<p><strong>Constraint validation:</strong> The element is
<a href=#barred-from-constraint-validation>barred from constraint validation</a>.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute
applies to this element and is in mode <a href=#dom-input-value-default title=dom-input-value-default>default</a>.<p>The following content attributes must not be specified and do not
apply to the element:
@@ -20421,8 +20452,7 @@
default behavior. If the element has a <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute, the button's label
must be the value of that attribute; otherwise, it must be the empty
string.<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
- the user should allow the user to activate the element.</p><!-- XXX event timing; activation behavior --><p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as
- follows:</strong> Do nothing.<p><strong>Constraint validation:</strong> The element is
+ the user should allow the user to activate the element.</p><!-- XXX event timing; activation behavior --><p><strong>Constraint validation:</strong> The element is
<a href=#barred-from-constraint-validation>barred from constraint validation</a>.<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute
applies to this element and is in mode <a href=#dom-input-value-default title=dom-input-value-default>default</a>.<p>The following content attributes must not be specified and do not
apply to the element:
@@ -20613,7 +20643,8 @@
it must set the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new value, set the
element's <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value
flag</a> to true, and then invoke the <a href=#value-sanitization-algorithm>value sanitization
- algorithm</a> defined for the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state.</dd>
+ algorithm</a>, if the element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
+ defines one.</dd>
<dt><dfn id=dom-input-value-default title=dom-input-value-default>default</dfn>
@@ -21078,7 +21109,7 @@
<input type="submit" value="Search"></pre>
</div><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=concept-fs-enctype title=concept-fs-enctype>enctype</dfn> if present els 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
<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 <span title=attr-input-type-submit-state>Submit Button</span> state. The
+ 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
element</a> is a <dfn id=candidate-for-constraint-validation>candidate for constraint validation</dfn>
@@ -21228,7 +21259,7 @@
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 <span title=attr-input-type-file-state>File Upload</span> state but
+ <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>
</ul><p>Otherwise, process <var title="">field</var> as follows:</p>
@@ -21238,7 +21269,7 @@
<li>
<p>If 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 <span title=attr-input-type-image-state>Image Button</span> state,
+ <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=#image-button-state title=attr-input-type-image>Image Button</a> 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=#attr-fe-name>name</a></code> attribute specified and value
@@ -21312,11 +21343,11 @@
</ol></li>
<li><p>Otherwise, if 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 <span title=attr-input-type-file-state>File Upload</span> state, then
- for 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 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, then for
+ 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 and the file as the value. (Both the file name and the
- file contents are subsequently used.)</li>
+ the name and the file (consisting of the name, the type, and the
+ body) as the value.</li>
<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=#concept-fe-value title=concept-fe-value>value</a> of the <var title="">field</var> element as the value.</li>
Received on Friday, 3 October 2008 07:33:41 UTC