diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-02-24 00:14:15 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-02-24 00:14:15 -0500 |
commit | a52391aa1dcf3f28306e274e1b2d7f0affc4e725 (patch) | |
tree | 161193e695bc1f4b9f034aafeb968c7e7b4c9b16 /src/dimensions.js | |
parent | 1c35f3816a3b1be0855dcea8ab212af506e91f83 (diff) | |
download | jquery-a52391aa1dcf3f28306e274e1b2d7f0affc4e725.tar.gz jquery-a52391aa1dcf3f28306e274e1b2d7f0affc4e725.zip |
Fix #7986. $.support.boxModel shan't be fooled by page-level CSS.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index 769b99693..8069676eb 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -34,7 +34,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat doc = elem.document; docElemProp = doc.documentElement[ clientProp ]; - return doc.compatMode === "CSS1Compat" && docElemProp || + return jQuery.support.boxModel && docElemProp || doc.body && doc.body[ clientProp ] || docElemProp; } |