From: jaubourg Date: Tue, 8 Jan 2013 10:15:36 +0000 (+0100) Subject: Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called... X-Git-Tag: 2.0.0b1~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7cc629d0979fdc3b0a65d4501a3d71303708dee2;p=jquery.git Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called without an argument --- diff --git a/src/support.js b/src/support.js index 9950b33d4..35fb87612 100644 --- a/src/support.js +++ b/src/support.js @@ -65,7 +65,7 @@ jQuery.support = (function() { support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false; div.style.backgroundClip = "content-box"; - div.cloneNode().style.backgroundClip = ""; + div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; // Run tests that need a body at doc ready