]> source.dussan.org Git - jquery.git/commitdiff
Use document.compatMode for quirks test in width/height method
authorBrandon Aaron <brandon.aaron@gmail.com>
Tue, 18 Sep 2007 12:38:15 +0000 (12:38 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Tue, 18 Sep 2007 12:38:15 +0000 (12:38 +0000)
src/core.js

index 960af446f25dae7c20bb872a427f53c23e9215fa..e3dc01c050f3838bdc6acf7b32da3efd6c6447b3 100644 (file)
@@ -1123,7 +1123,7 @@ jQuery.each( [ "Height", "Width" ], function(i,name){
                        jQuery.browser.safari && self["inner" + name] ||
                        
                        // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       jQuery.boxModel && document.documentElement["client" + name] || document.body["client" + name] :
+                       document.compatMode == "CSS1Compat" && document.documentElement["client" + name] || document.body["client" + name] :
                
                // Get document width or height
                        this[0] == document ?