Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13422 closed bug (notabug)

Calling .appendTo() on newly created elements fails

Reported by: meyermd10@… Owned by: meyermd10@…
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 6 years ago by Rick Waldron

Owner: set to meyermd10@…
Status: newpending

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

comment:2 Changed 6 years ago by meyermd10@…

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 6 years ago by Rick Waldron

Resolution: notabug
Status: newclosed

It happens ;)

Note: See TracTickets for help on using tickets.