]> source.dussan.org Git - jquery.git/commitdiff
Wontfix #10791: please use "[class=foo]" with SVG elements
authorRichard Gibson <richard.gibson@gmail.com>
Wed, 11 Jul 2012 21:17:47 +0000 (17:17 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Wed, 11 Jul 2012 21:17:47 +0000 (17:17 -0400)
test/unit/event.js

index 6d36036725b00025d592ae7554973e6c0f44ec81..6b3dceadabab2bc520eb7112561d2f7e7295ee8a 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", ".svg-by-class", function() {
+               .on( "click", "[class='svg-by-class']", function() {
                        ok( true, "delegated class selector" );
                })
-               .find( "#svg-by-id, .svg-by-class" )
+               .find( "#svg-by-id, [class='svg-by-class']" )
                        .trigger( "click" )
                .end()
                .off( "click" );