mirror of
https://github.com/jquery/jquery.git
synced 2026-02-13 05:45:28 -05:00
Make sure that we don't try to use a detached node (that was in a fragment) as a fragment in IE. Fixes #5829.
This commit is contained in:
@@ -321,7 +321,7 @@ jQuery.fn.extend({
|
||||
parent = value && value.parentNode;
|
||||
|
||||
// If we're in a fragment, just use that instead of building a new one
|
||||
if ( parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
|
||||
if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
|
||||
results = { fragment: parent };
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user