Skip to content

Commit

Permalink
[] (0) HTMLInputElement.files should return the same object until the…
Browse files Browse the repository at this point in the history
… list changes. (bug 7229)

git-svn-id: http://svn.whatwg.org/webapps@3558 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 8, 2009
1 parent b4aff5a commit eaa117b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -33885,10 +33885,11 @@ You cannot complete this form until the field is correct.</samp></pre>

<hr><p>The <dfn id=dom-input-files title=dom-input-files><code>files</code></dfn> DOM
attribute allows scripts to access the element's <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. On
getting, if the DOM attribute applies, it must return a new
<code>FileList</code> object that represents the current <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>. If
the DOM 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>
getting, if the DOM attribute applies, it must return a
<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 DOM 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>

<hr><p>The <dfn id=dom-input-valueasdate title=dom-input-valueAsDate><code>valueAsDate</code></dfn> DOM
attribute represents the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element, interpreted
Expand Down
10 changes: 6 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -37715,11 +37715,13 @@ You cannot complete this form until the field is correct.</samp></pre>
<p>The <dfn title="dom-input-files"><code>files</code></dfn> DOM
attribute allows scripts to access the element's <span
title="concept-input-type-file-selected">selected files</span>. On
getting, if the DOM attribute applies, it must return a new
getting, if the DOM attribute applies, it must return a
<code>FileList</code> object that represents the current <span
title="concept-input-type-file-selected">selected files</span>. If
the DOM attribute does not apply, then it must instead throw an
<code>INVALID_STATE_ERR</code> exception. <a
title="concept-input-type-file-selected">selected files</span>. The
same object must be returned until the list of <span
title="concept-input-type-file-selected">selected files</span>
changes. If the DOM attribute does not apply, then it must instead
throw an <code>INVALID_STATE_ERR</code> exception. <a
href="#refsFILEAPI">[FILEAPI]</a></p>

<hr>
Expand Down

0 comments on commit eaa117b

Please sign in to comment.