Bug Tracker

Ticket #13596 (closed bug: fixed)

Opened 21 months ago

Last modified 20 months 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:

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

comment:1 Changed 21 months 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 20 months ago by dmethvin

  • Milestone changed from 1.9.2 to 1.10

comment:3 Changed 20 months 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.