Skip to main content

Bug Tracker

Side navigation

#10393 closed bug (invalid)

Opened September 30, 2011 07:31PM UTC

Closed October 15, 2011 07:47AM UTC

Error in method jQuery.buildFragment

Reported by: anton.tregubenko@gmail.com Owned by: anton.tregubenko@gmail.com
Priority: high Milestone: 1.next
Component: manipulation Version: 1.7b1
Keywords: Cc:
Blocked by: Blocking:
Description
if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
	results = { fragment: parent };
} else {
	results = jQuery.buildFragment( args, this, scripts );
}

jQuery.support.parentNode is undefined.

$('<div>test</div>').appendTo(document.body);

This code calls method buildFragment twice

Attachments (0)
Change History (5)

Changed September 30, 2011 08:05PM UTC by rwaldron comment:1

component: unfiledmanipulation
milestone: None1.next
owner: → rwaldron
priority: undecidedhigh
status: newassigned
version: 1.6.41.7b1

Changed September 30, 2011 08:07PM UTC by rwaldron comment:2

owner: rwaldronanton.tregubenko@gmail.com
status: assignedpending

Is this occurring in a specific browser?

http://jsfiddle.net/rwaldron/aYUfh/

Changed September 30, 2011 09:02PM UTC by anonymous comment:3

http://jsfiddle.net/aYUfh/1/

I've checked it in Google Chrome and MSIE 8. And i can't find any assign of property jQuery.support.parentNode in jQuery lib.

Changed September 30, 2011 09:09PM UTC by Anton Tregubenko <anton.tregubenko@gmail.com> comment:4

The above example illustrates the described error. The method buildFragment is called twice instead of one.

Changed October 15, 2011 07:47AM UTC by trac-o-bot comment:5

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!