From 3923bb8400b149f483b7115d0edd2f304348b189 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 16 Jan 2013 00:14:57 -0500 Subject: [PATCH] Event: Reduce differences from master --- test/unit/event.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/event.js b/test/unit/event.js index 7c3aa9fc2..d27db447c 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -1878,9 +1878,9 @@ test( "delegated event with selector matching Object.prototype property (#13203) test( "delegated event with intermediate DOM manipulation (#13208)", function() { expect(1); - jQuery("#foo").on( "click", "#sap", function() {}); - jQuery("#sap").on( "click", "#anchor2", function() { - jQuery( this.parentNode ).remove(); + jQuery("#foo").on( "click", "[id=sap]", function() {}); + jQuery("#sap").on( "click", "[id=anchor2]", function() { + document.createDocumentFragment().appendChild( this.parentNode ); ok( true, "Element removed" ); }); jQuery("#anchor2").trigger("click");