@@ -43257,7 +43257,7 @@ interface <dfn>HTMLInputElement</dfn> : <span>HTMLElement</span> {
43257
43257
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-input-dirName">dirName</span>;
43258
43258
[<span>CEReactions</span>] attribute boolean <span data-x="dom-fe-disabled">disabled</span>;
43259
43259
readonly attribute <span>HTMLFormElement</span>? <span data-x="dom-fae-form">form</span>;
43260
- readonly attribute <span>FileList</span>? <span data-x="dom-input-files">files</span>;
43260
+ attribute <span>FileList</span>? <span data-x="dom-input-files">files</span>;
43261
43261
[<span>CEReactions</span>] attribute USVString <span data-x="dom-fs-formAction">formAction</span>;
43262
43262
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-fs-formEnctype">formEnctype</span>;
43263
43263
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-fs-formMethod">formMethod</span>;
@@ -48953,7 +48953,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
48953
48953
48954
48954
</dd>
48955
48955
48956
- <dt><var>input</var> . <code subdfn data-x="dom-input-files">files</code> <!-- [ = <var>files</var> ] --> </dt>
48956
+ <dt><var>input</var> . <code subdfn data-x="dom-input-files">files</code> [ = <var>files</var> ]</dt>
48957
48957
48958
48958
<dd>
48959
48959
@@ -48962,9 +48962,9 @@ You cannot submit this form when the field is incorrect.</samp></pre>
48962
48962
48963
48963
<p>Returns null if the control isn't a file control.</p>
48964
48964
48965
- <!--
48966
- <p>Can be set to an array of <code>File</code> or <code>Blob</code> instances.</p>-
48967
- -- >
48965
+ <p>Can be set to a <code>FileList</code> object to change the <span
48966
+ data-x="concept-input-type-file-selected">selected files</span> of the form control. For
48967
+ instance, as the result of a drag-and-drop operation.</p >
48968
48968
48969
48969
</dd>
48970
48970
@@ -49118,13 +49118,26 @@ You cannot submit this form when the field is incorrect.</samp></pre>
49118
49118
<hr>
49119
49119
49120
49120
<p>The <dfn><code data-x="dom-input-files">files</code></dfn> IDL attribute allows scripts to
49121
- access the element's <span data-x="concept-input-type-file-selected">selected files</span>. On
49122
- getting, if the IDL attribute <span data-x="concept-input-apply">applies</span>, it must return a
49123
- <code>FileList</code> object that represents the current <span
49121
+ access the element's <span data-x="concept-input-type-file-selected">selected files</span>.
49122
+
49123
+ <p>On getting, if the IDL attribute <span data-x="concept-input-apply">applies</span>, it must
49124
+ return a <code>FileList</code> object that represents the current <span
49124
49125
data-x="concept-input-type-file-selected">selected files</span>. The same object must be returned
49125
- until the list of <span data-x="concept-input-type-file-selected">selected files</span> changes. If
49126
- the IDL attribute <span data-x="do not apply">does not apply</span>, then it must instead return
49127
- null. <ref spec=FILEAPI></p>
49126
+ until the list of <span data-x="concept-input-type-file-selected">selected files</span> changes.
49127
+ If the IDL attribute <span data-x="do not apply">does not apply</span>, then it must instead
49128
+ return null. <ref spec=FILEAPI></p>
49129
+
49130
+ <p>On setting, it must run these steps:
49131
+
49132
+ <ol>
49133
+ <li><p>If the IDL attribute <span data-x="do not apply">does not apply</span> or the given value
49134
+ is null, then return.</p></li>
49135
+ <!-- This is inconsistent with other attributes, but Chrome and Safari already shipped so doesn't
49136
+ seem worth the churn. -->
49137
+
49138
+ <li><p>Replace the element's <span data-x="concept-input-type-file-selected">selected
49139
+ files</span> with the given value.</p></li>
49140
+ </ol>
49128
49141
49129
49142
<hr>
49130
49143
0 commit comments