IE9 and <select/>, why u no work?
It is so frustrating to work with <select/>'s in IE.
Let's try this for instance:
var sel = document.getElementsByTagName("select"); alert(sel === sel.options);
This is false in every browser (as it should be) except IE(9)!
This means that if you have a function that accepts HTMLElements AND NodeLists, there is no way of distinguishing between a select and its options in IE.
Let's try something else:
1 2 3 4 5
<select name="make"> <optgroup label="Alfa Romeo"> <option>Giulietta</option> </optgroup> </select>
Now try to change the optgroup label's font-style to normal (it's bold and italic).
Cannot be done! How do you explain that to a customer?
Please Microsoft, fix these issues.
If something isn't possible, it just isn't possible. If you can't explain that to your customer, that's not Microsofts fault.How do you explain that to a customer?
Don't get me wrong, as a web developer IE can be nasty, but you have got to give Microsoft some credit for getting closer to the standards with each version of IE they release. Twelve more versions and developing for IE is as easy as it is for other browsers.
As a solution, give a framework like jQuery, with the interface of jQueryUI a chance. (www.jqueryui.com)
Also, try Chosen JS lib
Are you sure you can set the font-style and the font-weight of an optgroup lalbel in IE?onok wrote on Thursday 03 November 2011 @ 11:14:
And styling an OptGroup label works fine here, even in IE8.
Comments are closed