X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=d8f51a1711384708075343aaea3e2b336b7dd515;hb=6f7adb95c1f87869e071541c7e5c92a6189db713;hp=6f0373daa224c0df88c7c7c1baac71fd892a459f;hpb=8660ea1ab61dd16aec1ed24ec549c6258292b96a;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;