Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Dec 22, 2009
1 parent 4729f4d commit 7b0b348419c85841671459b4d7153afc88d1fa83
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes.js
@@ -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;

0 comments on commit 7b0b348

Please sign in to comment.
You can’t perform that action at this time.