From: John Resig Date: Sun, 21 Dec 2008 21:18:40 +0000 (+0000) Subject: Fixed an issue with domManip where the incorrect document was being used to create... X-Git-Tag: 1.3b1~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ee1708ea93517f69979a6805480597b96b58da7;p=jquery.git Fixed an issue with domManip where the incorrect document was being used to create the document fragment. --- diff --git a/src/core.js b/src/core.js index c712cc28b..ea043c807 100644 --- a/src/core.js +++ b/src/core.js @@ -501,7 +501,7 @@ jQuery.fn = jQuery.prototype = { domManip: function( args, table, callback ) { if ( this[0] ) { - var fragment = document.createDocumentFragment(), + var fragment = this[0].ownerDocument.createDocumentFragment(), scripts = jQuery.clean( args, this[0].ownerDocument, fragment ), first = fragment.firstChild, extra = this.length > 1 ? fragment.cloneNode(true) : fragment;