Attrs: Remove outdated valHook for option element

This hook was relevant for BlackBerry 4.7 which is no longer supported.

But this code path now raises error in IE10-11 (#14686) in 1.x-master branch.
So to just to be safe, also add test for IE issue to this branch too.
This commit is contained in:
Oleg
2014-01-12 23:44:07 +04:00
parent 38c122a73a
commit fdd78fad19
2 changed files with 9 additions and 8 deletions

View File

@@ -71,14 +71,6 @@ jQuery.fn.extend({
jQuery.extend({
valHooks: {
option: {
get: function( elem ) {
// attributes.value is undefined in Blackberry 4.7 but
// uses .value. See #6932
var val = elem.attributes.value;
return !val || val.specified ? elem.value : elem.text;
}
},
select: {
get: function( elem ) {
var value, option,