X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=d8f51a1711384708075343aaea3e2b336b7dd515;hb=8a4b2102ff57fb113267cd2824fa4f3a907ae9ed;hp=6f0373daa224c0df88c7c7c1baac71fd892a459f;hpb=532bec4c694532acbe2e14ad3b6ff72a4da90be0;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 6f0373d..d8f51a1 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -197,7 +197,7 @@ jQuery.fn.extend({ // as properties will not be copied (such as the // the name attribute on an input). var html = this.outerHTML, ownerDocument = this.ownerDocument; - if ( !html || jQuery.nodeName( this, "form" ) ) { + if ( !html ) { var div = ownerDocument.createElement("div"); div.appendChild( this.cloneNode(true) ); html = div.innerHTML;