HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3874

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
Index: source
===================================================================
--- source	(revision 3873)
+++ source	(revision 3874)
@@ -39480,8 +39480,11 @@
    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>
 

|