]> 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:15:36 +0000 (11:15 +0100)
src/support.js

index 9950b33d427d28af6f2537e8b8af087a2c1077f3..35fb876126c9dba4b46c8a7d86c942cf8da86fe7 100644 (file)
@@ -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