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:
parent
726fda08be
commit
99e7560808
3 changed files with 14 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -56,6 +56,8 @@
|
|||
// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
|
||||
optSelected: document.createElement("select").appendChild( document.createElement("option") ).selected,
|
||||
|
||||
parentNode: div.removeChild( div.appendChild( document.createElement("div") ) ).parentNode === null,
|
||||
|
||||
// Will be defined later
|
||||
checkClone: false,
|
||||
scriptEval: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue