The option isn't, necessarily, hidden when this occurs.
authorjeresig <jeresig@gmail.com>
Tue, 22 Dec 2009 20:06:27 +0000 (15:06 -0500)
committerjeresig <jeresig@gmail.com>
Tue, 22 Dec 2009 20:06:27 +0000 (15:06 -0500)
src/attributes.js

index 30b3205..b3a49f5 100644 (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;