public/javascripts/yui/dom/dom.js
function() {
            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());

            return h;
        }
function() {
            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());

            return h;
        }
function ( ) { var scrollHeight = ( document [ COMPAT_MODE ] != CSS1_COMPAT || isSafari ) ? document . body . scrollHeight : documentElement . scrollHeight , h = Math . max ( scrollHeight , Y . Dom . getViewportHeight ( ) ) ; return h ; }
Returns the height of the document.
@method getDocumentHeight
@return {Int} The height of the actual document (which includes the body and its margin).
Returns the height of the document .