Re: Selecting multiple options in a select element without multiple

On Tue, 28 Jul 2009, Geoffrey Sneddon wrote:
>
> If you set multiple option's defaultSelected attribute to true, as in 
> [1], whacky stuff happens. In IE8 and Opera, you end up with nothing 
> selected; in WebKit you end up with all of them selected; in Gecko you 
> end up with the final one selected.
> 
> As far as I can tell, the spec currently says that WebKit's behaviour is 
> correct, which IMO makes the least sense, as it should not be possible 
> to get more one selected.

The spec says what Gecko says (I think you missed the text in the <select> 
section).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 28 July 2009 19:13:38 UTC