From 8ee1708ea93517f69979a6805480597b96b58da7 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sun, 21 Dec 2008 21:18:40 +0000 Subject: [PATCH] Fixed an issue with domManip where the incorrect document was being used to create the document fragment. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5