]> source.dussan.org Git - jquery.git/commitdiff
Followup on #10791: "[class~=foo]" is better. Closes gh-858.
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 11 Jul 2012 21:33:53 +0000 (17:33 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 12 Jul 2012 14:08:24 +0000 (10:08 -0400)
test/unit/event.js

index 6b3dceadabab2bc520eb7112561d2f7e7295ee8a..502649a90b85236b1ad9c9901f3940b7285402cf 100644 (file)
@@ -1287,10 +1287,10 @@ test("Delegated events in SVG (#10791)", function() {
                .on( "click", "#svg-by-id", function() {
                        ok( true, "delegated id selector" );
                })
-               .on( "click", "[class='svg-by-class']", function() {
+               .on( "click", "[class~='svg-by-class']", function() {
                        ok( true, "delegated class selector" );
                })
-               .find( "#svg-by-id, [class='svg-by-class']" )
+               .find( "#svg-by-id, [class~='svg-by-class']" )
                        .trigger( "click" )
                .end()
                .off( "click" );