Skip to content

Commit 3923bb8

Browse files
committed
Event: Reduce differences from master
1 parent e4c5f87 commit 3923bb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,9 +1878,9 @@ test( "delegated event with selector matching Object.prototype property (#13203)
18781878
test( "delegated event with intermediate DOM manipulation (#13208)", function() {
18791879
expect(1);
18801880

1881-
jQuery("#foo").on( "click", "#sap", function() {});
1882-
jQuery("#sap").on( "click", "#anchor2", function() {
1883-
jQuery( this.parentNode ).remove();
1881+
jQuery("#foo").on( "click", "[id=sap]", function() {});
1882+
jQuery("#sap").on( "click", "[id=anchor2]", function() {
1883+
document.createDocumentFragment().appendChild( this.parentNode );
18841884
ok( true, "Element removed" );
18851885
});
18861886
jQuery("#anchor2").trigger("click");

0 commit comments

Comments
 (0)