[whatwg] Make files attribute of the input element writable
ojan at chromium.org
Tue May 22 16:10:19 PDT 2012
Proposed WebKit patch https://bugs.webkit.org/show_bug.cgi?id=87154. We'd
really like to hear if Hixie and/or other browser vendors have reservations
on making this change, otherwise, we'll commit this soon.
On Tue, May 22, 2012 at 10:41 AM, Nico Weber <thakis at chromium.org> wrote:
> The files attribute of the input element is currently marked readonly
> , to protect from `myInput.files = "/etc/passwd"; myForm.submit()`.
> Since its type is now FileList and not string, that's no longer
> Making the attribute writable would allow setting the files property
> of an input element to dataTransfer.files from a drop handler. For
> example, I would like to use this to create a larger drop-target for a
> file input. Here's one request for this functionality:
> Can the readonly restriction be removed from the spec?
More information about the whatwg