Lines Matching refs:document

64     if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method
72 var computed = document.defaultView.getComputedStyle(el, '');
79 } else if (document.documentElement.currentStyle && isIE) { // IE method
88 try { // make sure its in the document
155 return document.getElementById(el);
214 // has to be part of document to have pageXY
216 this.getStyle(el, 'display') == 'none') && el != document.body) {
386 this.getStyle(el, 'display') == 'none') && el != document.body) {
429 root = (root) ? Y.Dom.get(root) : null || document;
608 * Determines whether an HTMLElement is present in the current document.
611 * @return {Boolean} Whether or not the element is present in the current document
617 if (el == document.documentElement) {
623 return this.isAncestor(document.documentElement, el);
641 root = (root) ? Y.Dom.get(root) : null || document;
695 * Returns the height of the document.
697 * @return {Int} The height of the actual document (which includes the body and its margin).
700 var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
707 * Returns the width of the document.
709 * @return {Int} The width of the actual document (which includes the body and its margin).
712 var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
724 var mode = document.compatMode;
728 document.documentElement.clientHeight : // Standards
729 document.body.clientHeight; // Quirks
743 var mode = document.compatMode;
747 document.documentElement.clientWidth : // Standards
748 document.body.clientWidth; // Quirks
967 * Returns the left scroll value of the document
969 * @param {HTMLDocument} document (optional) The document to get the scroll value of
970 * @return {Int} The amount that the document is scrolled to the left
973 doc = doc || document;
978 * Returns the top scroll value of the document
980 * @param {HTMLDocument} document (optional) The document to get the scroll value of
981 * @return {Int} The amount that the document is scrolled to the top
984 doc = doc || document;