The option isn't, necessarily, hidden when this occurs.

This commit is contained in:
jeresig 2009-12-22 15:06:27 -05:00
parent 4729f4d443
commit 7b0b348419

View file

@ -263,7 +263,7 @@ jQuery.extend({
// These attributes require special treatment
var special = rspecialurl.test( name ), parent = elem.parentNode;
// Safari mis-reports the default selected property of a hidden option
// Safari mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
if ( name === "selected" && parent ) {
parent.selectedIndex;