Skip to main content

Bug Tracker

Side navigation

#13810 closed bug (fixed)

Opened April 22, 2013 03:14PM UTC

Closed April 23, 2013 01:11AM UTC

replaceWith removes the element which is given as a replacement

Reported by: nicofrand@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (1)

Changed April 23, 2013 01:11AM UTC by Richard Gibson comment:1

resolution: → fixed
status: newclosed

Fix #13810: .replaceWith(nextSibling)

Changeset: d8f7e8371230a6dd504ca02e65442745b6ff6ce2