hixie: Allow <input type=file> to be reset by setting value to ''. (whatwg r3874)

hixie: Allow <input type=file> to be reset by setting value to ''.
(whatwg r3874)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3038&r2=1.3039&f=h
http://html5.org/tools/web-apps-tracker?from=3873&to=3874

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3038
retrieving revision 1.3039
diff -u -d -r1.3038 -r1.3039
--- Overview.html 16 Sep 2009 09:35:22 -0000 1.3038
+++ Overview.html 16 Sep 2009 09:45:23 -0000 1.3039
@@ -31511,8 +31511,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

Received on Wednesday, 16 September 2009 09:46:17 UTC