Opened 10 years ago
Closed 10 years ago
#13810 closed bug (fixed)
replaceWith removes the element which is given as a replacement
Reported by: | 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.
Note: See
TracTickets for help on using
tickets.
Fix #13810: .replaceWith(nextSibling)