Modify ↓
Ticket #6035 (closed bug: duplicate)
IE 8 - Chaining remove and appendTo to move multiple child elements between two container elements no longer works in 1.4.x.
| Reported by: | pmoriarity | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4.2 |
| Component: | manipulation | Version: | 1.4.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Chaining remove and appendTo to move multiple child elements between two container elements no longer works in 1.4.x.
Works in Chrome and Firefox but not IE.
Test in IE 8 here: http://jsfiddle.net/LMGPk/
Sample HTML:
From:
<div id="divFrom">
<span>Item 1</span>
<span>Item 2</span>
<span>Item 3</span>
</div>
To:
<div id="divTo">
</div>
Sample JavaScript:
$("#divFrom span").remove().appendTo("#divTo");
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Tried using detach() instead of remove(), same problem.