From: Richard Gibson Date: Wed, 11 Jul 2012 21:33:53 +0000 (-0400) Subject: Followup on #10791: "[class~=foo]" is better. Closes gh-858. X-Git-Tag: 1.8rc1~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60e249437c3324b82124da70941a3b88cfc48a3d;p=jquery.git Followup on #10791: "[class~=foo]" is better. Closes gh-858. --- diff --git a/test/unit/event.js b/test/unit/event.js index 6b3dceada..502649a90 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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" );