Lines Matching refs:document
16 // A central reference to the root jQuery(document)
22 // Use the correct document accordingly with window argument (sandbox)
23 document = window.document,
81 if ( document.addEventListener ) {
82 document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
84 } else if ( document.readyState === "complete" ) {
87 document.detachEvent( "onreadystatechange", DOMContentLoaded );
128 doc = ( context && context.nodeType ? context.ownerDocument || context : document );
140 elem = document.getElementById( match[2] );
143 // nodes that are no longer in the document #6963
156 this.context = document;
172 // Shortcut for document ready
393 if ( !document.body ) {
406 readyList.resolveWith( document, [ jQuery ] );
410 jQuery( document ).trigger("ready").off("ready");
481 // context (optional): If specified, the fragment will be created in this context, defaults to document
492 context = context || document;
847 // Catch cases where $(document).ready() is called after the browser event has already occurred.
850 if ( document.readyState === "complete" ) {
855 } else if ( document.addEventListener ) {
857 document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
865 document.attachEvent( "onreadystatechange", DOMContentLoaded );
871 // continually check to see if the document is ready
875 top = window.frameElement == null && document.documentElement;
906 rootjQuery = jQuery(document);
1254 div = document.createElement("div");
1270 select = document.createElement("select");
1271 opt = select.appendChild( document.createElement("option") );
1316 enctype: !!document.createElement("form").enctype,
1320 html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
1323 boxModel: ( document.compatMode === "CSS1Compat" ),
1367 input = document.createElement("input");
1378 fragment = document.createDocumentFragment();
1417 body = document.getElementsByTagName("body")[0];
1424 container = document.createElement("div");
1429 div = document.createElement("div");
1468 marginDiv = document.createElement("div");
2527 ret = document.createAttribute( name );
2894 // TODO: Stop taunting the data cache; remove global events and always attach to document
2921 // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
2932 // Only add window if we got to document (e.g., not plain obj or detached DOM)
2933 if ( old === (elem.ownerDocument || document) ) {
3112 eventDoc = event.target.ownerDocument || document;
3155 event.target = originalEvent.srcElement || document;
3225 jQuery.removeEvent = document.removeEventListener ?
3257 // Events bubbling up the document may have been marked as prevented
3476 document.addEventListener( orig, handler, true );
3481 document.removeEventListener( orig, handler, true );
3693 document = window.document,
3694 docElem = document.documentElement,
3802 var div = document.createElement("div");
3816 div.appendChild( document.createComment("") );
3857 var pass = document.getElementsByName &&
3859 document.getElementsByName( expando ).length === 2 +
3861 document.getElementsByName( expando + 0 ).length;
3862 assertGetIdNotName = !document.getElementById( expando );
3886 context = context || document;
3907 // nodes that are no longer in the document #6963
3919 // Context is not a document
4099 // nodes that are no longer in the document #6963
4719 (match = preFilters[ type ]( match, document, true ))) ) {
4981 outermostContext = context !== document && context;
5163 if ( document.querySelectorAll ) {
5171 // A support test would require too much code (would include document ready)
5176 // A support test would require too much code (would include document ready)
5307 // As well, disconnected nodes are said to be in a document
5309 elem.document && elem.document.nodeType !== 11 ) {
5490 // from a document (should be improved, where feasible).
5540 elem.contentDocument || elem.contentWindow.document :
5636 function createSafeFragment( document ) {
5638 safeFrag = document.createDocumentFragment();
5676 safeFragment = createSafeFragment( document ),
5677 fragmentDiv = safeFragment.appendChild( document.createElement("div") );
5694 this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
5805 // keepData is for internal use only--do not document
6129 context = context || document;
6133 // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
6138 if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document &&
6277 safe = context === document && safeFragment,
6280 // Ensure that context is a document
6282 context = document;
6375 // Append elements to a provided document fragment
6520 var rootjQuerySub = jQuerySub(document);
6842 } else if ( document.documentElement.currentStyle ) {
6982 var elem = jQuery( "<" + nodeName + ">" ).appendTo( document.body ),
6990 iframe = document.body.appendChild(
6991 iframe || jQuery.extend( document.createElement("iframe"), {
6998 // Create a cacheable copy of the iframe document on first call.
7000 // document to it; WebKit & Firefox won't allow reusing the iframe document.
7002 iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
7010 document.body.removeChild( iframe );
7305 // a field from window.location if document.domain has been set
7310 // since IE will modify it given document.location
7311 ajaxLocation = document.createElement( "a" );
7440 // Request the remote document
7464 // inject the contents of the document in, removing the scripts
8264 head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
8270 script = document.createElement( "script" );
9336 var offsetParent = this.offsetParent || document.body;
9340 return offsetParent || document.body;
9356 win.document.documentElement[ method ] :
9395 return elem.document.documentElement[ "client" + name ];
9398 // Get document width or height