Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13422 closed bug (notabug)

Calling .appendTo() on newly created elements fails

Reported by: [email protected] Owned by: [email protected]
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:


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 Rick Waldron

Owner: set to [email protected]
Status: newpending

Why are you trying to append to the document object? That wouldn't work with plain DOM API either...

comment:2 Changed 10 years ago by [email protected]

Status: pendingnew

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.

comment:3 Changed 10 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

It happens ;)

Note: See TracTickets for help on using tickets.