Modify ↓
Ticket #12143 (closed bug: invalid)
Inconsistency in appendTo()'ing incorrect HTML accross browsers
| Reported by: | pawel@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
There is some difference in rendering the page between e.g. IE7 and FF/Chrome (and even IE8+) when appending (with jQuery(...).appendTo(...)) incorrect HTML. It seems like jQuery isn't able to handle it in IE7 properly, even though when inserting it through .innerHTML += "..." attribute works quite well.
An example is here: http://jsfiddle.net/JAQHg/
If it doesn't work, it is also here: http://dev.mucha.it/jquery-append.php
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.

The docs are extremely clear on this point: "To ensure cross-platform compatibility, the snippet must be well-formed." http://api.jquery.com/jQuery/