RESOLVED FIXED 15088
HTMLOptionElement.selected returns false when parent HTMLSelectElement is "display: none" until parent's .selectedIndex is accessed
https://bugs.webkit.org/show_bug.cgi?id=15088
Summary HTMLOptionElement.selected returns false when parent HTMLSelectElement is "di...
Mark Rowe (bdash)
Reported 2007-08-27 01:28:27 PDT
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.
Attachments
Test case (703 bytes, text/html)
2007-08-27 01:31 PDT, Mark Rowe (bdash)
no flags
First attempt (3.68 KB, patch)
2007-08-27 11:27 PDT, Rob Buis
mjs: review+
Mark Rowe (bdash)
Comment 1 2007-08-27 01:31:23 PDT
Created attachment 16129 [details] Test case Test case. Expected result would be "true, true" as per Firefox and common sense.
Rob Buis
Comment 2 2007-08-27 11:27:54 PDT
Created attachment 16134 [details] First attempt Hopefully this is the best place to do it :) Cheers, Rob.
Adam Roben (:aroben)
Comment 3 2007-09-28 12:13:58 PDT
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.
Maciej Stachowiak
Comment 4 2007-09-29 20:42:07 PDT
Comment on attachment 16134 [details] First attempt r=me for feature branch
Rob Buis
Comment 5 2007-10-05 00:55:50 PDT
Currently landing on fb is blocked by bug 15366. Cheers, Rob.
Rob Buis
Comment 6 2007-10-09 05:26:25 PDT
Landed in r26156 on fb.
Note You need to log in before you can comment on or make changes to this bug.