Commit aee81963 authored by Brandon Aaron's avatar Brandon Aaron

Use document.compatMode for quirks test in width/height method

parent 537d7ca8
...@@ -1123,7 +1123,7 @@ jQuery.each( [ "Height", "Width" ], function(i,name){ ...@@ -1123,7 +1123,7 @@ jQuery.each( [ "Height", "Width" ], function(i,name){
jQuery.browser.safari && self["inner" + name] || jQuery.browser.safari && self["inner" + name] ||
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode // 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 // Get document width or height
this[0] == document ? this[0] == document ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment