diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index ea731274f..398ef3dcd 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -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 ] ); } /** diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 9ae399b49..341bd8813 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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'",