Commit 8ee1708e authored by John Resig's avatar John Resig

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

Fixed an issue with domManip where the incorrect document was being used to create the document fragment.
parent 6048e40a
...@@ -501,7 +501,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment