Modify ↓
Ticket #6649 (closed bug: invalid)
browser hangs up while $.append()
| Reported by: | Mr Q.C. | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | manipulation | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
got problems while using $("some html").append("");
when "some html" is "<!-- ..... -->.....<!-- .... -->" maybe jquery searches for the "/" but in comments maybe it is not available.
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.

It's not possible to append anything to text and comment nodes, because neither can have children. I suppose jQuery could throw some sort of error for this case but it's sufficiently pathological that it is probably not worth it.