Opened 10 years ago
Closed 10 years ago
#13422 closed bug (notabug)
Calling .appendTo() on newly created elements fails
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Creating an element and then attempting to attach that element to the document fails in createSafeFragment. In that method, the document parameter is null.
example: http://jsfiddle.net/zSd5U/
Change History (3)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
Yes, you're right, this is quite silly. The code had been working happily for years, when it broke I just submitted a ticket without thinking too much about it. I've removed the appendTo call and now it works. Sorry.
Note: See
TracTickets for help on using
tickets.
Why are you trying to append to the
document
object? That wouldn't work with plain DOM API either...