mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Use document.compatMode for quirks test in width/height method
This commit is contained in:
parent
537d7ca869
commit
aee81963ba
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user