Skip to content
Permalink
Browse files

Fix #11439. Remove use of undefined jQuery.support.parentNode.

  • Loading branch information...
rkatic authored and dmethvin committed Mar 5, 2012
1 parent dc337f6 commit 077fd7ed6f7c330a957b9c58b805e6cc3f48be82
Showing with 2 additions and 11 deletions.
  1. +2 −11 src/manipulation.js
@@ -287,7 +287,7 @@ jQuery.fn.extend({
},

domManip: function( args, table, callback ) {
var results, first, fragment, parent,
var results, first, fragment,
value = args[0],
scripts = [];

@@ -307,16 +307,7 @@ jQuery.fn.extend({
}

if ( this[0] ) {
parent = value && value.parentNode;

// If we're in a fragment, just use that instead of building a new one
if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
results = { fragment: parent };

} else {
results = jQuery.buildFragment( args, this, scripts );
}

results = jQuery.buildFragment( args, this, scripts );
fragment = results.fragment;

if ( fragment.childNodes.length === 1 ) {

0 comments on commit 077fd7e

Please sign in to comment.
You can’t perform that action at this time.