X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=041b262a2ba005f7be95c166bb447028d1627590;hb=a4f25f9311c46c086eb6bb58b0afdcf66e4099d4;hp=f997aafa48e413109076eb081283824b5e4a21a9;hpb=998d1d8839813b957a32465fdc7ef7d27d858eea;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index f997aaf..041b262 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -435,6 +435,10 @@ jQuery.fn = jQuery.prototype = { * * @test $("#name").attr('name', 'something'); * ok( $("#name").name() == 'something', 'Set name attribute' ); + * @test $("#check2").attr('checked', true); + * ok( document.getElementById('check2').checked == true, 'Set checked attribute' ); + * $("#check2").attr('checked', false); + * ok( document.getElementById('check2').checked == false, 'Set checked attribute' ); * * @name attr * @type jQuery @@ -2912,6 +2916,8 @@ jQuery.macros = { * @before

Hello

Hello Again

And Again

* @result [

Hello

,

And Again

] * + * @test isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" ); + * * @name siblings * @type jQuery * @cat DOM/Traversing @@ -2925,6 +2931,9 @@ jQuery.macros = { * @before
Hello

Hello Again

And Again

* @result [

Hello Again

] * + * @test isSet( $("#sndp").siblings("[code]").get(), q("sap"), "Check for filtered siblings (has code child element)" ); + * @test isSet( $("#sndp").siblings("[a]").get(), q("en", "sap"), "Check for filtered siblings (has anchor child element)" ); + * * @name siblings * @type jQuery * @param String expr An expression to filter the sibling Elements with @@ -3167,7 +3176,7 @@ jQuery.macros = { * alert( $(this).text() ); * } ) * @before

Hello

- * @result Hello + * @result alert("Hello") * * @example $("form").bind( "submit", function() { return false; } ) * @desc Cancel a default action and prevent it from bubbling by returning false