Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove usage of undefined jQuery.support.parentNode. Fixes #11439.

  • Loading branch information...
commit ae23d45b4d2bf3c17cefc9295cb828985d394468 1 parent d332046
@rkatic authored
Showing with 2 additions and 11 deletions.
  1. +2 −11 src/manipulation.js
View
13 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 ) {
Please sign in to comment.
Something went wrong with that request. Please try again.