We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c5f87 commit 3923bb8Copy full SHA for 3923bb8
test/unit/event.js
@@ -1878,9 +1878,9 @@ test( "delegated event with selector matching Object.prototype property (#13203)
1878
test( "delegated event with intermediate DOM manipulation (#13208)", function() {
1879
expect(1);
1880
1881
- jQuery("#foo").on( "click", "#sap", function() {});
1882
- jQuery("#sap").on( "click", "#anchor2", function() {
1883
- jQuery( this.parentNode ).remove();
+ jQuery("#foo").on( "click", "[id=sap]", function() {});
+ jQuery("#sap").on( "click", "[id=anchor2]", function() {
+ document.createDocumentFragment().appendChild( this.parentNode );
1884
ok( true, "Element removed" );
1885
});
1886
jQuery("#anchor2").trigger("click");
0 commit comments