Modify ↓
Ticket #6490 (closed bug: invalid)
append vs. appendTo
| Reported by: | fabio.scala | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | manipulation | Version: | 1.4.2 |
| Keywords: | append appendTo IE FF | Cc: | |
| Blocking: | Blocked by: |
Description
Trying to append a DOM element created on the fly $(..) to multiple other DOM elements. I don't really care about it, as I can just use 'Case 2'. I also didn't create a separate Test Case.. I just noticed this while developing and thought I might report it..
Case 1:
$('.multiple-el').append($someOtherEl)
Case 2:
$someOtherEl.appendTo('.multiple-el')
IE 7:
Case 1: DOESN'T WORK
Case 2: WORKS
FF 3.6.3:
Case 1: WORKS
Case 2: WORKS
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.

Please reopen and attach a complete test case.