diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-09-18 12:38:15 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-09-18 12:38:15 +0000 |
commit | aee81963ba7a43618c176cd78276f3c0c8c6745c (patch) | |
tree | 384477f26c34f8fa232538686357d79f5576ce05 /src/core.js | |
parent | 537d7ca86902df1d2b61155d2822c7552030d846 (diff) | |
download | jquery-aee81963ba7a43618c176cd78276f3c0c8c6745c.tar.gz jquery-aee81963ba7a43618c176cd78276f3c0c8c6745c.zip |
Use document.compatMode for quirks test in width/height method
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 960af446f..e3dc01c05 100644 --- a/src/core.js +++ b/src/core.js @@ -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 ? |