HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3874[Gecko] [Internet Explorer] [Opera] [Webkit] Allow <input type=file> to be reset by setting value to ''.2009-09-16 09:51
@@ -39473,22 +39473,25 @@ You cannot complete this form until the field is correct.</samp></pre>
    title="">on</code>". On setting, it must set the element's <code
    title="attr-input-value">value</code> attribute to the new
    value.</dd>
 
    <dt><dfn title="dom-input-value-filename">filename</dfn>
 
    <dd>On getting, it must return the string "<code
    title="">C:\fakepath\</code>" followed by the filename of the first
    file in the list of <span
    title="concept-input-type-file-selected">selected files</span>, if
-   any, or the empty string if the list is empty. On setting, it must
-   throw an <code>INVALID_ACCESS_ERR</code> exception.</dd>
+   any, or the empty string if the list is empty. On setting, if the
+   new value is the empty string, it must empty the list of <span
+   title="concept-input-type-file-selected">selected files</span>;
+   otherwise, it must throw an <code>INVALID_ACCESS_ERR</code>
+   exception.</dd>
 
   </dl>
 
   <hr>
 
   <p>The <dfn title="dom-input-checked"><code>checked</code></dfn> IDL
   attribute allows scripts to manipulate the <span
   title="concept-fe-checked">checkedness</span> of an
   <code>input</code> element. On getting, it must return the current
   <span title="concept-fe-checked">checkedness</span> of the element;

|