Web Bug Track - A place to track Web bugs... in JavaScript, DOM, CSS, XHTML, HTML in all Web Browsers... Firefox, Internet Explorer, Safari, Chrome, Opera, Konqueror and more.
Issue: #523
Affects: Safari on iOS (iPod, iPhone, iPad)
Select options support a disabled attribute so that developers can optionally disable individual options if/when they are not applicable. Safari on the desktop (Windows or Mac) both support this attribute however Safari on iOS (so iPod, iPhone, & iPad) the attribute doesn't actually do anything and the user is free to select the option even though it is supposed to be disabled.
Example:
If this select list were rendered on an iPhone or iPad you would be able to select the "thrid" option. It's not a Webkit bug, since the same select list will render perfectly on other tablets like the BlackBerry PlayBook.
Known Workarounds: Two. You'll need to either need to remove the options, or inform the user after their selection that it isn't valid (not recommended for usability purposes)
Note:Updated synopsis to include the select element, not just the options.
Have you ever wanted to provide more descriptive text in the form of a tooltip in your Web applications? Of course you have. It may have slipped your notice though, that this doesn't work on select list options (or even the select list itself) in IE6 (fixed in IE7).
The option element is used inside a select element to provide options for the user to select from. Like all visually displayed elements in the browser, you can attach event handlers to them too.
Well, not quite. The following table indicates the level of support for each browser, and event.
Event
Firefox
Internet
Explorer
Konqueror
Opera
Safari
Chrome
onclick
Yes
No
?
Yes
No (v4.0 Yes!)
No (v2.0 yes!)
onmouseover
Yes
No
?
No (v9.5 Yes!)
No (v4.0 Yes!)
No (v2.0 yes!)
onmouseout
Yes
No
?
No (v9.5 Yes!)
No (v4.0 Yes!)
No (v2.0 yes!)
onmousedown
Yes
No
?
No (v9.64 Yes!)
No (v4.0 Yes!)
No (v2.0 yes!)
onmouseup
Yes
No
?
No (v9.64 Yes!)
No (v4.0 Yes!)
No (v2.0 yes!)
keyup
No
No
?
No
No
No
keydown
No
No
?
No
No
No
keypress
No
No
?
No
No
No
Only Firefox seems to support the full array of mouse events, Opera is next supporting an onclick event, but in IE and Safari(win) there is no support for mouse events on options.
Oddly enough, no browser seems to support keyboard events on options.
View the following samples in Firefox, Safari or Opera and IE.
Yet another issue with select lists in IE. First you couldn't style them (bug 291) then it turns out, you can't disable them either!
Example:
<select> <option>I am valid</option> <option>I am valid too</option> <option disabled="disabled">I am NOT valid</option> <option>I am also valid</option> </select>
Try it for yourself, load this page up in IE and any other browser.
Update: IE8 partially fixed this in that you can disable options and thus they render grayed out and can't be selected by mouse - however they can still be selected by alphabetic key presses. (e.g. in the sample above, press "i" until you see that you've selected the disabled option)
CSS was meant to be the solution to applying global styling, without interfering with the content of a page. For the most part, it works really well, although IE has been very slow to catch up to the other major browsers in this arena.
Case in point. The option element is used inside a select element to provide options for the user to select from. In IE, you can style it any way you want, as long as all you want to style is the font and the color... because all other styling options just won't work!
View the following samples in Firefox, Safari or Opera and they will work like a charm*. In IE the colors work, but after that, it just ignore the styling requests.
Example:
Note: In Safari the background colors do work, but the background images and padding do not.
Feb. 7,2009 - Added a new Tag called Broken By Design. It is applied to all reported bugs that the browser vendor has indicated that they have no intention of fixing this bug any time soon and is therefore broken "By Design".
Feb. 7,2009 - Updated as many bug reports as possible for Internet Explorer 8 (IE8) to reflect the status of IE8 RC1 since according to the IE Blog the RTM release is coming soon. If you want to know, click to see what has been fixed?
Drag/Right-Click and save to your Bookmarks
View generated source of a page in IE View Source
Show Rendering Mode for IE6/7 Render Mode
Show Rendering Mode for IE8 IE8 Render Mode
Show how many style tags a page has # style tags