Skip to content

Commit

Permalink
Use document.compatMode for quirks test in width/height method
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed Sep 18, 2007
1 parent 537d7ca commit aee8196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -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 ?
Expand Down

0 comments on commit aee8196

Please sign in to comment.