]> source.dussan.org Git - jquery.git/commitdiff
Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called...
authorjaubourg <j@ubourg.net>
Tue, 8 Jan 2013 10:15:36 +0000 (11:15 +0100)
committerjaubourg <j@ubourg.net>
Tue, 8 Jan 2013 10:55:19 +0000 (11:55 +0100)
src/support.js

index 4960930efb49419f29f3371bd47c1b81ef6ebea0..ce764a1ce088bfe3bb02181e1952061671938d94 100644 (file)
@@ -139,7 +139,7 @@ jQuery.support = (function() {
        }
 
        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