Fixed an issue with domManip where the incorrect document was being used to create the document fragment.
This commit is contained in:
parent
6048e40a45
commit
8ee1708ea9
|
@ -501,7 +501,7 @@ jQuery.fn = jQuery.prototype = {
|
||||||
|
|
||||||
domManip: function( args, table, callback ) {
|
domManip: function( args, table, callback ) {
|
||||||
if ( this[0] ) {
|
if ( this[0] ) {
|
||||||
var fragment = document.createDocumentFragment(),
|
var fragment = this[0].ownerDocument.createDocumentFragment(),
|
||||||
scripts = jQuery.clean( args, this[0].ownerDocument, fragment ),
|
scripts = jQuery.clean( args, this[0].ownerDocument, fragment ),
|
||||||
first = fragment.firstChild,
|
first = fragment.firstChild,
|
||||||
extra = this.length > 1 ? fragment.cloneNode(true) : fragment;
|
extra = this.length > 1 ? fragment.cloneNode(true) : fragment;
|
||||||
|
|
Loading…
Reference in a new issue