Ticket #5701 (closed bug: fixed)
Make Sure selected Works in Safari with Optgroup
| Reported by: | john | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | core | Version: | 1.4a2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Change History
comment:4 follow-up: ↓ 5 Changed 2 years ago by anonymous
Sorry by relive this ticket... But where is the sense on: parent.parentNode.selectedIndex;? For me and Closure Compiler don't make sense! :S
comment:5 in reply to: ↑ 4 Changed 2 years ago by jitter
Replying to anonymous:
Sorry by relive this ticket... But where is the sense on: parent.parentNode.selectedIndex;? For me and Closure Compiler don't make sense! :S
What are you trying to say? If you have anything useful to add please leave more then half a sentence.
btw. jQuery doesn't use Closure compiler so ??
comment:6 Changed 2 years ago by anonymous
On sure, I think that is a workaround on Safari. [parent.parentNode.selectedIndex] is a property (not function!). See a part of jQuery commented: http://jsfiddle.net/VFMQ2/ You get now?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Fixed. http://github.com/jquery/jquery/commit/4729f4d44326fd302c63af8f3324b6c4bac54084
I figure that the nodeNames could've been checked but that'd just be extra overhead - as it is there's no negative side-effects to accessing the selectedIndex property on an incorrect element.