I noticed this bug while reading over the jQuery source code. <select id='theSelect' style='display: none'> <option id='theOption'>The Option</option> </select> Accessing theOption.selected returns false until theSelect.selectedIndex is accessed, in which case it switches to returning true.
Created attachment 16129 [details] Test case Test case. Expected result would be "true, true" as per Firefox and common sense.
Created attachment 16134 [details] First attempt Hopefully this is the best place to do it :) Cheers, Rob.
Comment on attachment 16134 [details] First attempt This looks fine to me, but it'd be nice for Adele to take a look as well.
Comment on attachment 16134 [details] First attempt r=me for feature branch
Currently landing on fb is blocked by bug 15366. Cheers, Rob.
Landed in r26156 on fb.