Side navigation
#8773 closed bug (invalid)
Opened April 05, 2011 03:22PM UTC
Closed April 13, 2011 02:16PM UTC
Last modified April 13, 2011 03:28PM UTC
jQuery.support.optSelected bug
Reported by: | panasenko.oleksandr@gmail.com | Owned by: | panasenko.oleksandr@gmail.com |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | support | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery.support.optSelected does not work correctly in IE, it returns "false" (for pseudo element) but I got "true" (for real element). For example I propose to look at the small test in the different browsers(IE6-8, Opera, Safari and FF) http://www.khai202.ho.ua/opt_selected_bug.html.
I got following results:
- IE6 : false , false , true , true;
- IE7 : false , false , true , true;
- Chrome 10.0.648.204 : true, true, true , true;
- Opera 11.01 : true, true, true , true;
- Safari 5.0.3 : true, true, true , true;
To fix this bug you should replace reference to option through childNodes. Then this .optSelected property will not be necessary.
Attachments (0)
Change History (5)
Changed April 07, 2011 02:07PM UTC by comment:1
component: | unfiled → support |
---|---|
owner: | → panasenko.oleksandr@gmail.com |
status: | new → pending |
Changed April 07, 2011 08:25PM UTC by comment:2
Hi. Sorry for not immediately added code through jsFiddle. http://jsfiddle.net/ZKyNs/. I don't undrestand what is jQuery Edge.
Changed April 07, 2011 08:30PM UTC by comment:3
Working test case: http://jsfiddle.net/ZKyNs/2/
Changed April 13, 2011 02:16PM UTC by comment:4
priority: | undecided → low |
---|---|
resolution: | → invalid |
status: | pending → closed |
All 3 need to be normalized. The behavior of optSelected is correct.
Changed April 13, 2011 03:28PM UTC by comment:5
Hi. If I understood correctly normalized tree doesn't contain extra TextNodes. In following test I lined all tags, but the result is the same. http://jsfiddle.net/ZKyNs/6/
Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket! Be sure to test against the jQuery Edge version to ensure the issue still exists.