mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removed extraneous nodeName check from f95147f465
commit.
This commit is contained in:
parent
532bec4c69
commit
8a4b2102ff
@ -197,7 +197,7 @@ jQuery.fn.extend({
|
|||||||
// as properties will not be copied (such as the
|
// as properties will not be copied (such as the
|
||||||
// the name attribute on an input).
|
// the name attribute on an input).
|
||||||
var html = this.outerHTML, ownerDocument = this.ownerDocument;
|
var html = this.outerHTML, ownerDocument = this.ownerDocument;
|
||||||
if ( !html || jQuery.nodeName( this, "form" ) ) {
|
if ( !html ) {
|
||||||
var div = ownerDocument.createElement("div");
|
var div = ownerDocument.createElement("div");
|
||||||
div.appendChild( this.cloneNode(true) );
|
div.appendChild( this.cloneNode(true) );
|
||||||
html = div.innerHTML;
|
html = div.innerHTML;
|
||||||
|
Loading…
Reference in New Issue
Block a user