Skip to content

Commit

Permalink
Fixed bug in testsuite, tried to fix problem with :selected in Opera …
Browse files Browse the repository at this point in the history
…8.54: It does not work the default selections
  • Loading branch information
jzaefferer committed Oct 8, 2006
1 parent fac6a87 commit b30a469
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build/test/data/testrunner.js
Expand Up @@ -129,9 +129,10 @@ function isSet(a, b, msg) {
ret = false;
} else
ret = false;
if ( !ret && console )
console.log( msg, a, b );
Test.push( [ ret, msg ] );
if ( !ret )
Test.push( [ ret, msg + " expected: " + b + " result: " + a ] );
else
Test.push( [ ret, msg ] );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/jquery/jquery.js
Expand Up @@ -1565,7 +1565,7 @@ jQuery.extend({
enabled: "!a.disabled",
disabled: "a.disabled",
checked: "a.checked",
selected: "a.selected",
selected: "a.selected || jQuery.attr(a, 'selected')",

// Form elements
text: "a.type=='text'",
Expand Down

0 comments on commit b30a469

Please sign in to comment.