Bug Tracker

Opened 8 years ago

Closed 8 years ago

#10393 closed bug (invalid)

Error in method jQuery.buildFragment

Reported by: anton.tregubenko@… Owned by: anton.tregubenko@…
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

Change History (5)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledmanipulation
Milestone: None1.next
Owner: set to Rick Waldron
Priority: undecidedhigh
Status: newassigned
Version: 1.6.41.7b1

comment:2 Changed 8 years ago by Rick Waldron

Owner: changed from Rick Waldron to anton.tregubenko@…
Status: assignedpending

Is this occurring in a specific browser?

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

comment:3 Changed 8 years ago by anonymous

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.

comment:4 Changed 8 years ago by Anton Tregubenko <anton.tregubenko@…>

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

comment:5 Changed 8 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.