diff --git a/src/dimensions.js b/src/dimensions.js index 69cfc4513..a53254d54 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],