Bug Tracker

Opened 3 years ago

Closed 3 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:


(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.


Change History (3)

comment:1 Changed 3 years ago by gibson042

  • Component changed from unfiled to manipulation
  • Milestone changed from None to 1.9.2
  • Owner set to gibson042
  • Priority changed from undecided to high
  • Status changed from new to assigned

comment:2 Changed 3 years ago by dmethvin

  • Milestone changed from 1.9.2 to 1.10

comment:3 Changed 3 years ago by Richard Gibson

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Changeset: db0326b1fdd22b97e24af34245e38914c04a70ba

Note: See TracTickets for help on using tickets.