Bug Tracker

Ticket #13596 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

.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:
Blocking: Blocked by:


(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

comment:1 Changed 3 years ago by gibson042

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

comment:2 Changed 3 years ago by dmethvin

  • Milestone changed from 1.9.2 to 1.10

comment:3 Changed 2 years ago by Richard Gibson

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

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

Changeset: db0326b1fdd22b97e24af34245e38914c04a70ba

Note: See TracTickets for help on using tickets.