X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdimensions.js;h=a53254d5499892c741e3952225008254c2cb7ae4;hb=70b9aed422c34047299fe6e8934902fae61f2a3e;hp=69cfc4513d20319313c03dd9ed699d5f12aaadd0;hpb=2adb9b2a0fab55301f66d1a293823ffa6649bdc9;p=jquery.git diff --git a/src/dimensions.js b/src/dimensions.js index 69cfc45..a53254d 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -27,7 +27,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ elem.document.body[ "client" + name ] : // Get document width or height - (elem.nodeName === "#document") ? // is it a document + (elem.nodeType === 9) ? // is it a document // Either scroll[Width/Height] or offset[Width/Height], whichever is greater Math.max( elem.documentElement["client" + name],