[html5] r3544 - [giow] (2) input.files support
whatwg at whatwg.org
whatwg at whatwg.org
Wed Aug 5 16:56:04 PDT 2009
Author: ianh
Date: 2009-08-05 16:56:02 -0700 (Wed, 05 Aug 2009)
New Revision: 3544
Modified:
index
source
Log:
[giow] (2) input.files support
Modified: index
===================================================================
--- index 2009-08-05 23:40:28 UTC (rev 3543)
+++ index 2009-08-05 23:56:02 UTC (rev 3544)
@@ -29396,6 +29396,7 @@
attribute boolean <a href=#dom-input-checked title=dom-input-checked>checked</a>;
attribute boolean <a href=#dom-fe-disabled title=dom-fe-disabled>disabled</a>;
readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
+ attribute <span>FileList</span> <a href=#dom-input-files title=dom-input-files>files</a>;
attribute DOMString <a href=#dom-fs-formaction title=dom-fs-formAction>formAction</a>;
attribute DOMString <a href=#dom-fs-formenctype title=dom-fs-formEnctype>formEnctype</a>;
attribute DOMString <a href=#dom-fs-formmethod title=dom-fs-formMethod>formMethod</a>;
@@ -29550,7 +29551,7 @@
</table><p>The <i>missing value default</i> is the <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state.</p>
<p>Which of the <code title=attr-input-accept><a href=#attr-input-accept>accept</a></code>, <code title=attr-input-alt><a href=#attr-input-alt>alt</a></code>, <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>, <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code>, <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code>, <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code>, <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code>, <code title=attr-fs-formnovalidate><a href=#attr-fs-formnovalidate>formnovalidate</a></code>, <code title=attr-fs-formtarget><a href=#attr-fs-formtarget>formtarget</a></code>, <code title=attr-dim-height><a href=#attr-dim-height>height</a></code>, <code title=attr-input-list><a href=#attr-input-list>list</a></code>, <code title=attr-input-max><a href=#attr-input-max>max</a></code>, <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>, <code title=attr-input-min><a href=#attr-input-min>min</a></code>, <code title=attr-input-multiple><a href=#attr-input-multiple>multiple</a></code>, <code title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>, <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>, <code title=attr-input-required><a href=#attr-input-required>required</a></code>, <code title=attr-input-size><a href=#attr-input-size>size</a></code>, <code title=attr-input-src><a href=#attr-input-src>src</a></code>, <code title=attr-input-step><a href=#attr-input-step>step</a></code>, and <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> attributes apply to an
- <code><a href=#the-input-element>input</a></code> element depends on the state of its <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute. Similarly, the <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, <code title=dom-input-list><a href=#dom-input-list>list</a></code>, and <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM
+ <code><a href=#the-input-element>input</a></code> element depends on the state of its <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute. Similarly, the <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code title=dom-input-files><a href=#dom-input-files>files</a></code>, <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code>, <code title=dom-input-list><a href=#dom-input-list>list</a></code>, and <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code> DOM
attributes, and the <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code>
and <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> methods, are
specific to certain states. The following table <span class=impl>is non-normative and</span> summarises which content
@@ -30157,6 +30158,30 @@
<td class=no> · <!-- Reset Button -->
<!-- <td class="no"> · Button -->
+ <tr><th> <code title=dom-input-files><a href=#dom-input-files>files</a></code>
+ <td class=no> · <!-- Hidden -->
+ <td class=no> · <!-- Text -->
+<!-- <td class="no"> · Search -->
+<!-- <td class="no"> · URL -->
+ <td class=no> · <!-- E-mail -->
+ <td class=no> · <!-- Password -->
+ <td class=no> · <!-- Date and Time -->
+<!-- <td class="no"> · Date -->
+<!-- <td class="no"> · Month -->
+<!-- <td class="no"> · Week -->
+<!-- <td class="no"> · Time -->
+ <td class=no> · <!-- Local Date and Time -->
+<!-- <td class="no"> · Number -->
+ <td class=no> · <!-- Range -->
+ <td class=no> · <!-- Color -->
+ <td class=no> · <!-- Checkbox -->
+<!-- <td class="no"> · Radio Button -->
+ <td class=yes> Yes <!-- File Upload -->
+ <td class=no> · <!-- Submit Button -->
+ <td class=no> · <!-- Image Button -->
+ <td class=no> · <!-- Reset Button -->
+<!-- <td class="no"> · Button -->
+
<tr class=impl><th> <code title=dom-input-value><a href=#dom-input-value>value</a></code>
<td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Hidden -->
<td class=yes> <a href=#dom-input-value-value title=dom-input-value-value>value</a> <!-- Text -->
@@ -30467,7 +30492,7 @@
<td class=no> · <!-- Submit Button -->
<td class=no> · <!-- Image Button -->
<td class=no> · <!-- Reset Button -->
-<!-- <td class="no"> · Button -->
+<!-- <td class="no"> · Button -->
</table><div class=impl>
@@ -30675,6 +30700,7 @@
<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-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -30773,6 +30799,7 @@
<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-files><a href=#dom-input-files>files</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
@@ -30868,6 +30895,7 @@
<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-files><a href=#dom-input-files>files</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
@@ -30966,6 +30994,7 @@
<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-files><a href=#dom-input-files>files</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
@@ -31086,6 +31115,7 @@
<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-files><a href=#dom-input-files>files</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
@@ -31144,6 +31174,9 @@
<code title=dom-textarea/input-select><a href=#dom-textarea/input-select>select()</a></code>, and
<code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea/input-setselectionrange>setSelectionRange()</a></code> methods.</p>
+ <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
+ in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.</p>
+
<p>The <code title=event-input-input><a href=#event-input-input>input</a></code> and <code title=event-input-change><a href=#event-input-change>change</a></code> events apply.</p>
<p>The following content attributes must not be specified and do not
@@ -31168,6 +31201,7 @@
<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-files><a href=#dom-input-files>files</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-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and
@@ -31324,6 +31358,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>, and
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code> DOM attributes;
<code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea/input-select>select()</a></code> and
@@ -31618,6 +31653,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>, and
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code> DOM attributes;
<code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea/input-select>select()</a></code> and
@@ -31765,6 +31801,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>, and
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code> DOM attributes;
<code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea/input-select>select()</a></code> and
@@ -31906,6 +31943,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>, and
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code> DOM attributes;
<code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea/input-select>select()</a></code> and
@@ -32039,6 +32077,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code>, and
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes;
@@ -32167,6 +32206,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code>, and
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes;
@@ -32326,6 +32366,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code>, and
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes;
@@ -32423,6 +32464,7 @@
<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-files><a href=#dom-input-files>files</a></code>,
<code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
<code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea/input-selectionend>selectionEnd</a></code>,
<code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and
@@ -32528,6 +32570,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
+ <code class=no-backref title=dom-input-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -32663,6 +32706,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
+ <code class=no-backref title=dom-input-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -32760,9 +32804,14 @@
<p>The following common <code><a href=#the-input-element>input</a></code> element content
attributes apply to the 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-input-accept><a href=#attr-input-accept>accept</a></code>,
<code title=attr-input-multiple><a href=#attr-input-multiple>multiple</a></code>, and
- <code title=attr-input-required><a href=#attr-input-required>required</a></code>.</p>
+ <code title=attr-input-required><a href=#attr-input-required>required</a></code>;
+ <code title=dom-input-files><a href=#dom-input-files>files</a></code> and
+ <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes.</p>
<p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is
in mode <a href=#dom-input-value-filename title=dom-input-value-filename>filename</a>.</p>
@@ -32889,6 +32938,7 @@
<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-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -33083,6 +33133,7 @@
<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-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -33169,6 +33220,7 @@
<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-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -33245,6 +33297,7 @@
<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-files><a href=#dom-input-files>files</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-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code>,
@@ -33858,6 +33911,13 @@
set the element's <a href=#concept-input-checked-dirty-flag title=concept-input-checked-dirty-flag>dirty checkedness
flag</a> to true.</p>
+ <hr><p>The <dfn id=dom-input-files title=dom-input-files><code>files</code></dfn> DOM
+ attribute allows scripts to access the element's <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. On
+ getting, if the DOM attribute applies, it must return a new
+ <code>FileList</code> object that represents the current <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. If
+ the DOM attribute does not apply, then it must instead throw an
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. <a href=#refsFILEAPI>[FILEAPI]</a></p>
+
<hr><p>The <dfn id=dom-input-valueasdate title=dom-input-valueAsDate><code>valueAsDate</code></dfn> DOM
attribute represents the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element, interpreted
as a date.</p>
Modified: source
===================================================================
--- source 2009-08-05 23:40:28 UTC (rev 3543)
+++ source 2009-08-05 23:56:02 UTC (rev 3544)
@@ -32603,6 +32603,7 @@
attribute boolean <span title="dom-input-checked">checked</span>;
attribute boolean <span title="dom-fe-disabled">disabled</span>;
readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
+ attribute <span>FileList</span> <span title="dom-input-files">files</span>;
attribute DOMString <span title="dom-fs-formAction">formAction</span>;
attribute DOMString <span title="dom-fs-formEnctype">formEnctype</span>;
attribute DOMString <span title="dom-fs-formMethod">formMethod</span>;
@@ -32813,6 +32814,7 @@
<code>input</code> element depends on the state of its <code
title="attr-input-type">type</code> attribute. Similarly, the <code
title="dom-input-checked">checked</code>, <code
+ title="dom-input-files">files</code>, <code
title="dom-input-valueAsDate">valueAsDate</code>, <code
title="dom-input-valueAsNumber">valueAsNumber</code>, <code
title="dom-input-list">list</code>, and <code
@@ -33454,6 +33456,31 @@
<td class="no"> · <!-- Reset Button -->
<!-- <td class="no"> · Button -->
+ <tr>
+ <th> <code title="dom-input-files">files</code>
+ <td class="no"> · <!-- Hidden -->
+ <td class="no"> · <!-- Text -->
+<!-- <td class="no"> · Search -->
+<!-- <td class="no"> · URL -->
+ <td class="no"> · <!-- E-mail -->
+ <td class="no"> · <!-- Password -->
+ <td class="no"> · <!-- Date and Time -->
+<!-- <td class="no"> · Date -->
+<!-- <td class="no"> · Month -->
+<!-- <td class="no"> · Week -->
+<!-- <td class="no"> · Time -->
+ <td class="no"> · <!-- Local Date and Time -->
+<!-- <td class="no"> · Number -->
+ <td class="no"> · <!-- Range -->
+ <td class="no"> · <!-- Color -->
+ <td class="no"> · <!-- Checkbox -->
+<!-- <td class="no"> · Radio Button -->
+ <td class="yes"> Yes <!-- File Upload -->
+ <td class="no"> · <!-- Submit Button -->
+ <td class="no"> · <!-- Image Button -->
+ <td class="no"> · <!-- Reset Button -->
+<!-- <td class="no"> · Button -->
+
<tr class="impl">
<th> <code title="dom-input-value">value</code>
<td class="yes"> <span title="dom-input-value-value">value</span> <!-- Hidden -->
@@ -33777,7 +33804,7 @@
<td class="no"> · <!-- Submit Button -->
<td class="no"> · <!-- Image Button -->
<td class="no"> · <!-- Reset Button -->
-<!-- <td class="no"> · Button -->
+<!-- <td class="no"> · Button -->
</table>
@@ -34055,6 +34082,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -34161,6 +34189,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
<code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
<code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
@@ -34267,6 +34296,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
<code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
<code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
@@ -34374,6 +34404,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
<code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
<code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
@@ -34506,6 +34537,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
<code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
<code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
@@ -34569,6 +34601,9 @@
<code title="dom-textarea/input-select">select()</code>, and
<code title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
+ <p>The <code title="dom-input-value">value</code> DOM attribute is
+ in mode <span title="dom-input-value-value">value</span>.</p>
+
<p>The <code title="event-input-input">input</code> and <code
title="event-input-change">change</code> events apply.</p>
@@ -34594,6 +34629,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
@@ -34774,6 +34810,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
<code class="no-backref" title="dom-textarea/input-select">select()</code> and
@@ -35107,6 +35144,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
<code class="no-backref" title="dom-textarea/input-select">select()</code> and
@@ -35274,6 +35312,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
<code class="no-backref" title="dom-textarea/input-select">select()</code> and
@@ -35436,6 +35475,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
<code class="no-backref" title="dom-textarea/input-select">select()</code> and
@@ -35586,6 +35626,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
@@ -35725,6 +35766,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
@@ -35907,6 +35949,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
@@ -36010,6 +36053,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
<code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
<code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
@@ -36132,6 +36176,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -36288,6 +36333,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -36397,9 +36443,14 @@
<p>The following common <code>input</code> element content
attributes apply to the element:
+
+ <p>The following common <code>input</code> element content
+ attributes and DOM attributes apply to the element:
<code title="attr-input-accept">accept</code>,
<code title="attr-input-multiple">multiple</code>, and
- <code title="attr-input-required">required</code>.</p>
+ <code title="attr-input-required">required</code>;
+ <code title="dom-input-files">files</code> and
+ <code title="dom-input-value">value</code> DOM attributes.</p>
<p>The <code title="dom-input-value">value</code> DOM attribute is
in mode <span title="dom-input-value-filename">filename</span>.</p>
@@ -36536,6 +36587,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -36777,6 +36829,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -36870,6 +36923,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -36952,6 +37006,7 @@
<p>The following DOM attributes and methods do not apply to the
element:
<code class="no-backref" title="dom-input-checked">checked</code>,
+ <code class="no-backref" title="dom-input-files">files</code>,
<code class="no-backref" title="dom-input-list">list</code>,
<code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
<code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
@@ -37684,6 +37739,18 @@
<hr>
+ <p>The <dfn title="dom-input-files"><code>files</code></dfn> DOM
+ attribute allows scripts to access the element's <span
+ title="concept-input-type-file-selected">selected files</span>. On
+ getting, if the DOM attribute applies, it must return a new
+ <code>FileList</code> object that represents the current <span
+ title="concept-input-type-file-selected">selected files</span>. If
+ the DOM attribute does not apply, then it must instead throw an
+ <code>INVALID_STATE_ERR</code> exception. <a
+ href="#refsFILEAPI">[FILEAPI]</a></p>
+
+ <hr>
+
<p>The <dfn
title="dom-input-valueAsDate"><code>valueAsDate</code></dfn> DOM
attribute represents the <span
More information about the Commit-Watchers
mailing list