Opened 9 years ago
Closed 8 years ago
#9522 closed bug (wontfix)
Cannot use .append() or .appendTo() with document fragments
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | manipulation | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
As the title states: trying to append() a document fragment OR trying to appendTo() onto a document fragment fails.
The fragment will not have any children in the example below:
var frag = document.createDocumentFragment(), elem = document.createElement('div'); /* Comment out 2 out of 3 to test each case separately */ //frag.appendChild(elem); $(frag).append(elem); //$(elem).appendTo(frag); console.log(frag);
Change History (4)
comment:1 Changed 9 years ago by
Component: | unfiled → manipulation |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 9 years ago by
Is that something we want to fix? Fragments are nodeType 11 and all manipulation is revolved around nodeType being 1.
comment:4 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
Adding a +1 to rwaldron's vote to mark this as an invalid use case. As timmywil appears to side with this not being behaviour that should be fixed, I'll be closing as wontfix.
If another member of the team wishes to change this resolution, please feel free to.
Note: See
TracTickets for help on using
tickets.
fiddle: http://jsfiddle.net/barfD/
barfD, lol.