Ticket #7981 (closed bug: worksforme)
Setting "selected" attribute to false should have no effect in single line <select>
|Reported by:||anonymous||Owned by:||jitter|
Description (last modified by jitter) (diff)
Hi. I filed this bug (if it is one) also at the WekKit Project ( https://bugs.webkit.org/show_bug.cgi?id=52436) since I don't know who is responsible for this behaviour.
(I am using Ubuntu 10.04) I got a <select> element with three <option> inside (my page ist XHTML 1.0 Transitional), looks like this:
<select> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> </select>
None of those is selected manually (i.e. has the "selected='selected'" tag) but on first loading the page, the option "0" ist shown by default. When I use jQuery to delete all "selected" tags in all <option>-element (which are not there), suddenly no option is selected anymore. You can check it yourself with following (w3c validated) little code:
This disappearing of a selected value happens in Google Chrome 8.0.552.237, Chromium 10.0.639.0 (71411) as well as Safari 5.0.3 (7533.19.4). You see, pretty new browsers. According to webkit.org the webkit version of Chromium is 534.16 but the newest webkit version is r75294. So I can't really tell if I got the newest one, it's a confusing name scheme. This behaviour, however, does not appear in Firefox 3.6.13, Opera 11.00 or Internet Explorer 8.
I think that the way Firefox, Opera and IE handle this is the correct way. Could you please check if this is a bug in WebKit?
Best regards, Christian
- Priority changed from undecided to low
- Component changed from unfiled to manipulation
- Description modified (diff)
- Owner set to jitter
- Status changed from new to assigned
- Version changed from 1.4.4 to 1.5
- Milestone changed from 1.next to 1.5.1