W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] Removing multiple attribute from <input type=file multiple> with selected files

From: TAMURA, Kent <tkent@chromium.org>
Date: Tue, 15 Dec 2009 13:54:19 +0900
Message-ID: <b7b4ecf80912142054s98750a0kdc77a421eaca3b54@mail.gmail.com>
>> I would prefer not to throw an exception. Making removeAttribute throw
>> an exception seems wrong since the attribute *is* in fact removed, and
>> making foo.multiple=false throw would mean that it would behave
>> differently from all other "mapped" IDL attributes.

>> I'd really prefer to keep things simple here as I doubt that this is
>> something that anyone will ever do. Much less depend on a particular
>> behavior.

>> You're off course free to put a warning in a developer console or
>> something like that though.

> I buy that. A warning seems appropriate. I'm sure *someone* will do this
> someday, but it's probably rare enough that it's not worth putting effort
> into.

Yeah, a warning seems reasonable. The current implementation of WebKit does
nothing, and I might add the warning if the spec say nothing about this.

Thank you.

Software Engineer, Google
Received on Monday, 14 December 2009 20:54:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC