From 077fd7ed6f7c330a957b9c58b805e6cc3f48be82 Mon Sep 17 00:00:00 2001 From: Robert Katic Date: Mon, 5 Mar 2012 22:57:34 +0100 Subject: [PATCH] Fix #11439. Remove use of undefined jQuery.support.parentNode. --- src/manipulation.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index 5007dbcab..1fac92065 100644 --- a/src/manipulation.js +++ b/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 ) { -- 2.39.5