We only support wrapping the first element around an element (all others are ignored...
[jquery.git] / src / manipulation.js
index b5ace4d..55017c1 100644 (file)
@@ -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] );