Skip to content

Commit d8aa8e7

Browse files
committed
Sizzle: fix issue with adjusting the context on relative combinators in element-rooted qSA
1 parent 09fc2c5 commit d8aa8e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sizzle

test/unit/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ test("jQuery.off using dispatched jQuery.Event", function() {
23442344

23452345
test( "delegated event with delegateTarget-relative selector", function() {
23462346
expect(2);
2347-
var markup = jQuery( '<ul><li><a id="a0"></a><ul id="ul0"><li><a id="a0_0"></a></li><li><a id="a0_1"></a></li></ul></li></ul>' ).appendTo("body");
2347+
var markup = jQuery("<ul><li><a id=\"a0\"></a><ul id=\"ul0\"><li><a id=\"a0_0\"></a></li><li><a id=\"a0_1\"></a></li></ul></li></ul>").appendTo("#qunit-fixture");
23482348

23492349
markup
23502350
.on( "click", ">li>a", function() {

0 commit comments

Comments
 (0)