Side navigation
#9522 closed bug (wontfix)
Opened June 06, 2011 09:02AM UTC
Closed July 12, 2011 05:44PM UTC
Cannot use .append() or .appendTo() with document fragments
Reported by: | magentix@gmail.com | 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);
Attachments (0)
Change History (4)
Changed June 08, 2011 05:14PM UTC by comment:1
component: | unfiled → manipulation |
---|---|
priority: | undecided → low |
status: | new → open |
Changed June 08, 2011 05:22PM UTC by comment:2
Is that something we want to fix? Fragments are nodeType 11 and all manipulation is revolved around nodeType being 1.
Changed June 08, 2011 05:36PM UTC by comment:3
@dmethvin & @timmywil - I vote "invalid use case".
Changed July 12, 2011 05:44PM UTC by comment:4
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.
fiddle: http://jsfiddle.net/barfD/
barfD, lol.