aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2012-12-17 18:15:51 -0500
committerRick Waldron <waldron.rick@gmail.com>2012-12-31 13:20:24 -0500
commit0b91e836a30aa03a18e5dfb735eca56cc45c16fb (patch)
treeb7ff09173ef78c3f2b7c9d50dafd26ff95eea18b /src
parent049cc9d1eba974905f868accb1f54299bb69bb7a (diff)
downloadjquery-0b91e836a30aa03a18e5dfb735eca56cc45c16fb.tar.gz
jquery-0b91e836a30aa03a18e5dfb735eca56cc45c16fb.zip
2.0: Remove support.optSelected
Diffstat (limited to 'src')
-rw-r--r--src/attributes.js20
-rw-r--r--src/support.js4
2 files changed, 0 insertions, 24 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 8e1934888..f94752368 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -610,26 +610,6 @@ if ( !jQuery.support.style ) {
};
}
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
- get: function( elem ) {
- var parent = elem.parentNode;
-
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- return null;
- }
- });
-}
-
// Radios and checkboxes getter/setter
if ( !jQuery.support.checkOn ) {
jQuery.each([ "radio", "checkbox" ], function() {
diff --git a/src/support.js b/src/support.js
index d4e4ea3da..d1a8d3d38 100644
--- a/src/support.js
+++ b/src/support.js
@@ -55,10 +55,6 @@ jQuery.support = (function() {
// Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
checkOn: !!input.value,
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- optSelected: opt.selected,
-
// Makes sure cloning an html5 element does not cause problems
// Where outerHTML is undefined, this still works
html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",