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
157 return document.getElementById(el);
217 // has to be part of document to have pageXY
219 this.getStyle(el, 'display') == 'none') && el != document.body) {
393 this.getStyle(el, 'display') == 'none') && el != document.body) {
438 root = (root) ? Y.Dom.get(root) : null || document;
626 * Determines whether an HTMLElement is present in the current document.
629 * @return {Boolean} Whether or not the element is present in the current document
635 if (el == document.documentElement) {
641 return this.isAncestor(document.documentElement, el);
659 root = (root) ? Y.Dom.get(root) : null || document;
715 * Returns the height of the document.
717 * @return {Int} The height of the actual document (which includes the body and its margin).
720 var scrollHeight = (document.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
728 * Returns the width of the document.
730 * @return {Int} The width of the actual document (which includes the body and its margin).
733 var scrollWidth = (document.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
746 var mode = document.compatMode;
750 document.documentElement.clientHeight : // Standards
751 document.body.clientHeight; // Quirks
766 var mode = document.compatMode;
770 document.documentElement.clientWidth : // Standards
771 document.body.clientWidth; // Quirks
1000 * Returns the left scroll value of the document
1002 * @param {HTMLDocument} document (optional) The document to get the scroll value of
1003 * @return {Int} The amount that the document is scrolled to the left
1006 doc = doc || document;
1011 * Returns the top scroll value of the document
1013 * @param {HTMLDocument} document (optional) The document to get the scroll value of
1014 * @return {Int} The amount that the document is scrolled to the top
1017 doc = doc || document;