Skip to content
Permalink
Browse files

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

  • Loading branch information
brandonaaron committed Sep 18, 2007
1 parent 537d7ca commit aee81963ba7a43618c176cd78276f3c0c8c6745c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ?

0 comments on commit aee8196

Please sign in to comment.
You can’t perform that action at this time.