X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=a37ae783f80d76e6293230a0a1ba7918c003af41;hb=58c640fb1ce09a03399a3a441716cca23f3f2d04;hp=660f7eee675b311e8f8754111cb78ccbe61fa7da;hpb=227f8b2514de31bd0b5c45ce6fc1b942c081f776;p=jquery.git diff --git a/src/core.js b/src/core.js index 660f7ee..a37ae78 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