[html5] r5254 - [giow] (1) Make HTMLInputElement.files not throw when called at a bogus time.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 9 15:35:59 PDT 2010
Author: ianh
Date: 2010-08-09 15:35:57 -0700 (Mon, 09 Aug 2010)
New Revision: 5254
Modified:
complete.html
index
source
Log:
[giow] (1) Make HTMLInputElement.files not throw when called at a bogus time.
Modified: complete.html
===================================================================
--- complete.html 2010-08-09 19:11:05 UTC (rev 5253)
+++ complete.html 2010-08-09 22:35:57 UTC (rev 5254)
@@ -41981,8 +41981,7 @@
<p>Returns a <code>FileList</code> object listing the <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a> of
the form control.</p>
- <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
- control isn't a file control.</p>
+ <p>Returns null if the control isn't a file control.</p>
</dd>
@@ -42102,7 +42101,7 @@
<code>FileList</code> object that represents the current <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. The
same object must be returned until the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>
changes. If the IDL attribute does not apply, then it must instead
- throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. <a href=#refsFILEAPI>[FILEAPI]</a></p>
+ return null. <a href=#refsFILEAPI>[FILEAPI]</a></p>
<hr><p>The <dfn id=dom-input-valueasdate title=dom-input-valueAsDate><code>valueAsDate</code></dfn> IDL
attribute represents the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element, interpreted
Modified: index
===================================================================
--- index 2010-08-09 19:11:05 UTC (rev 5253)
+++ index 2010-08-09 22:35:57 UTC (rev 5254)
@@ -41908,8 +41908,7 @@
<p>Returns a <code>FileList</code> object listing the <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a> of
the form control.</p>
- <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
- control isn't a file control.</p>
+ <p>Returns null if the control isn't a file control.</p>
</dd>
@@ -42029,7 +42028,7 @@
<code>FileList</code> object that represents the current <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. The
same object must be returned until the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>
changes. If the IDL attribute does not apply, then it must instead
- throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. <a href=#refsFILEAPI>[FILEAPI]</a></p>
+ return null. <a href=#refsFILEAPI>[FILEAPI]</a></p>
<hr><p>The <dfn id=dom-input-valueasdate title=dom-input-valueAsDate><code>valueAsDate</code></dfn> IDL
attribute represents the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element, interpreted
Modified: source
===================================================================
--- source 2010-08-09 19:11:05 UTC (rev 5253)
+++ source 2010-08-09 22:35:57 UTC (rev 5254)
@@ -46772,8 +46772,7 @@
title="concept-input-type-file-selected">selected files</span> of
the form control.</p>
- <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
- control isn't a file control.</p>
+ <p>Returns null if the control isn't a file control.</p>
</dd>
@@ -46927,8 +46926,7 @@
same object must be returned until the list of <span
title="concept-input-type-file-selected">selected files</span>
changes. If the IDL attribute does not apply, then it must instead
- throw an <code>INVALID_STATE_ERR</code> exception. <a
- href="#refsFILEAPI">[FILEAPI]</a></p>
+ return null. <a href="#refsFILEAPI">[FILEAPI]</a></p>
<hr>
More information about the Commit-Watchers
mailing list