Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13810 closed bug (fixed)

replaceWith removes the element which is given as a replacement

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:


I know the replaceWith/after/before methods have changed since 1.9, but even if misused, the replaceWith method should have no effect.

In this fiddle : http://jsfiddle.net/98Fx9/1/, I expect the list to contain 3 elements (A, C and B) (as if the replaceWith call had really no effect) whereas it outputs only the first child. You can also see an error in the console : NotFoundError: Node was not found from line 5523.

Change History (1)

comment:1 Changed 10 years ago by Richard Gibson

Resolution: fixed
Status: newclosed

Fix #13810: .replaceWith(nextSibling)

Changeset: d8f7e8371230a6dd504ca02e65442745b6ff6ce2

Note: See TracTickets for help on using tickets.