diff options
author | David Serduke <davidserduke@gmail.com> | 2007-12-12 01:32:35 +0000 |
---|---|---|
committer | David Serduke <davidserduke@gmail.com> | 2007-12-12 01:32:35 +0000 |
commit | 279f77e9609fba62c11a06f8c65221b16f7bc7d4 (patch) | |
tree | f67b2e94f57c8ff576e05a2ed39404aaffa645ff /src/core.js | |
parent | c6a44c7943f460594a6a75081ad9bce76fea80f0 (diff) | |
download | jquery-279f77e9609fba62c11a06f8c65221b16f7bc7d4.tar.gz jquery-279f77e9609fba62c11a06f8c65221b16f7bc7d4.zip |
Fixed a bug in clone where it wouldn't work on an XML node in IE. Also added unit test for it.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 660f7eee6..a37ae783f 100644 --- a/src/core.js +++ b/src/core.js @@ -290,7 +290,7 @@ jQuery.fn = jQuery.prototype = { clone: function( events ) { // Do the clone var ret = this.map(function(){ - if ( jQuery.browser.msie ) { + if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { // IE copies events bound via attachEvent when // using cloneNode. Calling detachEvent on the // clone will also remove the events from the orignal |