[whatwg] the impact of <select>.value behavior clearing current selection prior to setting the new selection

Cameron McCormack cam at mcc.id.au
Wed Feb 1 17:53:52 PST 2012

Ian Hickson:
> It's my understanding that what you describe as what browsers do is also
> what the specs require. The attribute is defined as being of type "long",
> so if I'm not misreading the Web IDL spec, the browser will try to convert
> the null or string value to a number (and fail) long before the HTML
> spec's prose is relevant.

For the long type, null and strings like "junk" will get converted to 0.


More information about the whatwg mailing list