Bug Tracker

Opened 5 years ago

Closed 5 years ago

#13596 closed bug (fixed)

.replaceWith should always remove the context set

Reported by: gibson042 Owned by: gibson042
Priority: high Milestone: 1.10
Component: manipulation Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

(copied from https://github.com/jquery/jquery-migrate/issues/28)

Some edge-case arguments can break .replaceWith, causing it to no-op instead of removing the context set. It should be updated to guarantee .remove(), even if .domManip never executes the callback.

http://jsfiddle.net/T5CjG/6/

Change History (3)

comment:1 Changed 5 years ago by gibson042

Component: unfiledmanipulation
Milestone: None1.9.2
Owner: set to gibson042
Priority: undecidedhigh
Status: newassigned

comment:2 Changed 5 years ago by dmethvin

Milestone: 1.9.21.10

comment:3 Changed 5 years ago by Richard Gibson

Resolution: fixed
Status: assignedclosed

Fix #13596; #13722: .replaceWith consistency. Close gh-1216.

Changeset: db0326b1fdd22b97e24af34245e38914c04a70ba

Note: See TracTickets for help on using tickets.