[html5] r3874 - [giow] (2) Allow <input type=file> to be reset by setting value to ''.

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 16 02:51:05 PDT 2009


Author: ianh
Date: 2009-09-16 02:51:04 -0700 (Wed, 16 Sep 2009)
New Revision: 3874

Modified:
   index
   source
Log:
[giow] (2) Allow <input type=file> to be reset by setting value to ''.

Modified: index
===================================================================
--- index	2009-09-16 09:41:03 UTC (rev 3873)
+++ index	2009-09-16 09:51:04 UTC (rev 3874)
@@ -35473,8 +35473,10 @@
 
    <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 <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>, if
-   any, or the empty string if the list is empty. On setting, it must
-   throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></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 <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
+   otherwise, it must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+   exception.</dd>
 
   </dl><hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> IDL
   attribute allows scripts to manipulate the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> of an

Modified: source
===================================================================
--- source	2009-09-16 09:41:03 UTC (rev 3873)
+++ source	2009-09-16 09:51:04 UTC (rev 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>
 




More information about the Commit-Watchers mailing list