Skip to content
Permalink
Browse files
Fixed an issue with domManip where the incorrect document was being u…
…sed to create the document fragment.
  • Loading branch information
jeresig committed Dec 21, 2008
1 parent 6048e40 commit 8ee1708ea93517f69979a6805480597b96b58da7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;

0 comments on commit 8ee1708

Please sign in to comment.