Fixed an issue with domManip where the incorrect document was being used to create the document fragment.

This commit is contained in:
John Resig 2008-12-21 21:18:40 +00:00
parent 6048e40a45
commit 8ee1708ea9

View file

@ -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;