X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=55017c196ff82a15ec3cd6c6a9143c0427c80b24;hb=7a04d1da54caec00b900620390df820fb85b1227;hp=b5ace4d73b4dd755ac9effc148969d560b99214a;hpb=991dafae16e44512c5107b90bc8ce9675d8f5c12;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index b5ace4d..55017c1 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -24,7 +24,7 @@ jQuery.fn.extend({ if ( this[0] ) { // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(); if ( this[0].parentNode ) wrap.insertBefore( this[0] );