mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed bug in testsuite, tried to fix problem with :selected in Opera 8.54: It does not work the default selections
This commit is contained in:
parent
fac6a87dcf
commit
b30a469a5a
@ -129,8 +129,9 @@ function isSet(a, b, msg) {
|
|||||||
ret = false;
|
ret = false;
|
||||||
} else
|
} else
|
||||||
ret = false;
|
ret = false;
|
||||||
if ( !ret && console )
|
if ( !ret )
|
||||||
console.log( msg, a, b );
|
Test.push( [ ret, msg + " expected: " + b + " result: " + a ] );
|
||||||
|
else
|
||||||
Test.push( [ ret, msg ] );
|
Test.push( [ ret, msg ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@ -1565,7 +1565,7 @@ jQuery.extend({
|
|||||||
enabled: "!a.disabled",
|
enabled: "!a.disabled",
|
||||||
disabled: "a.disabled",
|
disabled: "a.disabled",
|
||||||
checked: "a.checked",
|
checked: "a.checked",
|
||||||
selected: "a.selected",
|
selected: "a.selected || jQuery.attr(a, 'selected')",
|
||||||
|
|
||||||
// Form elements
|
// Form elements
|
||||||
text: "a.type=='text'",
|
text: "a.type=='text'",
|
||||||
|
Loading…
Reference in New Issue
Block a user