X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=f7ebb8ddd5b9ccfbf4d7b0e76af199f8a9919b3a;hb=130f3e6d4381783ec2e94b3e146c01fbc633fc74;hp=c4ed21b95ce8ece5b58f340f8dc9ee2f0fbc198c;hpb=f153dec20c7827c7ec5016f24c85e999950bc33c;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index c4ed21b..f7ebb8d 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -390,6 +390,8 @@ jQuery.fn = jQuery.prototype = { * @test ok( $('#en').attr('lang') == "en", 'Check for lang attribute' ); * @test ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' ); * @test ok( $('#name').attr('name') == "name", 'Check for name attribute' ); + * @test ok( $('#text1').attr('name') == "action", 'Check for name attribute' ); + * @test ok( $('#form').attr('action') == "formaction", 'Check for action attribute' ); * * @name attr * @type Object @@ -1631,6 +1633,8 @@ jQuery.extend({ * @test t( "Is Visible", "input:visible", ["text1","text2","radio1","radio2","check1","check2","name"] ); * @test t( "Is Hidden", "input:hidden", ["hidden1","hidden2"] ); * + * @test t( "Grouped Form Elements", "input[@name='foo[bar]']", ["hidden2"] ); + * * @test t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] ); * @test t( "All Children of ID with no children", "#firstUL/*", [] ); * @@ -2127,8 +2131,11 @@ jQuery.extend({ var c = this.events[event.type]; + var args = [].slice.call( arguments, 1 ); + args.unshiftT( event ); + for ( var j in c ) { - if ( c[j].apply( this, [event] ) === false ) { + if ( c[j].apply( this, args ) === false ) { event.preventDefault(); event.stopPropagation(); returnValue = false;