W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: Selecting multiple options in a select element without multiple

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 4 Aug 2009 05:18:14 +0000 (UTC)
To: Geoffrey Sneddon <gsneddon@opera.com>
Cc: HTMLWG WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0908040517440.6420@hixie.dreamhostps.com>
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.
> 
> [1]: http://hg.mozilla.org/mozilla-central/raw-file/fdb670d3c8b3/layout/reftests/bugs/395107-1.html

You are misreading the spec; see the <select> section for the text that 
unselects an <option> once another is selected.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 4 August 2009 05:18:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:43 GMT