git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
532bec4
)
Removed extraneous nodeName check from f95147f465932cb91e1a6aace50c556820ca4074 commit.
author
jeresig
<jeresig@gmail.com>
Tue, 2 Feb 2010 02:56:11 +0000
(21:56 -0500)
committer
jeresig
<jeresig@gmail.com>
Tue, 2 Feb 2010 02:56:11 +0000
(21:56 -0500)
src/manipulation.js
patch
|
blob
|
history
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
6f0373d
..
d8f51a1
100644
(file)
--- 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;
// 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;
var div = ownerDocument.createElement("div");
div.appendChild( this.cloneNode(true) );
html = div.innerHTML;