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

Selecting multiple options in a select element without multiple

From: Geoffrey Sneddon <gsneddon@opera.com>
Date: Tue, 28 Jul 2009 12:01:36 +0200
Message-ID: <4A6ECC80.50508@opera.com>
To: HTMLWG WG <public-html@w3.org>
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.


Geoffrey Sneddon  Opera Software
Received on Tuesday, 28 July 2009 10:02:19 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:51 UTC