Lines Matching refs:context

153 	jQuery = function( selector, context ) {  argument
157 return new jQuery.fn.init( selector, context );
755 function Sizzle( selector, context, results, seed ) { argument
757 newContext = context && context.ownerDocument,
760 nodeType = context ? context.nodeType : 9;
773 setDocument( context );
774 context = context || document;
787 if ( ( elem = context.getElementById( m ) ) ) {
807 contains( context, elem ) &&
817 push.apply( results, context.getElementsByTagName( selector ) );
822 context.getElementsByClassName ) {
824 push.apply( results, context.getElementsByClassName( m ) );
836 ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
839 newContext = context;
852 newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
853 context;
857 if ( newContext !== context || !support.scope ) {
860 if ( ( nid = context.getAttribute( "id" ) ) ) {
863 context.setAttribute( "id", ( nid = expando ) );
886 context.removeAttribute( "id" );
894 return select( selector.replace( rtrim, "$1" ), context, results, seed );
1098 function testContext( context ) { argument
1099 return context && typeof context.getElementsByTagName !== "undefined" && context;
1213 Expr.find[ "ID" ] = function( id, context ) { argument
1214 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1215 var elem = context.getElementById( id );
1231 Expr.find[ "ID" ] = function( id, context ) {
1232 if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1234 elem = context.getElementById( id );
1245 elems = context.getElementsByName( id );
1262 function( tag, context ) {
1263 if ( typeof context.getElementsByTagName !== "undefined" ) {
1264 return context.getElementsByTagName( tag );
1268 return context.querySelectorAll( tag );
1272 function( tag, context ) {
1278 results = context.getElementsByTagName( tag );
1294 Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) {
1295 if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
1296 return context.getElementsByClassName( className );
1632 Sizzle.contains = function( context, elem ) { argument
1639 if ( ( context.ownerDocument || context ) != document ) {
1640 setDocument( context );
1642 return contains( context, elem );
2403 function( elem, context, xml ) {
2406 return matcher( elem, context, xml );
2413 function( elem, context, xml ) {
2421 if ( matcher( elem, context, xml ) ) {
2449 if ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {
2462 function( elem, context, xml ) {
2465 if ( !matchers[ i ]( elem, context, xml ) ) {
2483 function condense( unmatched, map, filter, context, xml ) { argument
2492 if ( !filter || filter( elem, context, xml ) ) {
2511 return markFunction( function( seed, results, context, xml ) { argument
2520 context.nodeType ? [ context ] : context,
2526 condense( elems, preMap, preFilter, context, xml ) :
2543 matcher( matcherIn, matcherOut, context, xml );
2549 postFilter( temp, [], context, xml );
2618 matchers = [ function( elem, context, xml ) {
2619 var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
2620 ( checkContext = context ).nodeType ?
2621 matchContext( elem, context, xml ) :
2622 matchAnyContext( elem, context, xml ) );
2670 superMatcher = function( seed, context, xml, results, outermost ) { argument
2691 outermostContext = context == document || context || outermost;
2705 if ( !context && elem.ownerDocument != document ) {
2710 if ( matcher( elem, context || document, xml ) ) {
2749 matcher( unmatched, setMatched, context, xml );
2835 select = Sizzle.select = function( selector, context, results, seed ) { argument
2849 context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
2851 context = ( Expr.find[ "ID" ]( token.matches[ 0 ]
2852 .replace( runescape, funescape ), context ) || [] )[ 0 ];
2853 if ( !context ) {
2858 context = context.parentNode;
2878 rsibling.test( tokens[ 0 ].type ) && testContext( context.parentNode ) ||
2879 context
2900 context,
2903 !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
3133 init = jQuery.fn.init = function( selector, context, root ) { argument
3159 if ( match && ( match[ 1 ] || !context ) ) {
3163 context = context instanceof jQuery ? context[ 0 ] : context;
3169 context && context.nodeType ? context.ownerDocument || context : document,
3174 if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
3175 for ( match in context ) {
3179 this[ match ]( context[ match ] );
3183 this.attr( match, context[ match ] );
3204 } else if ( !context || context.jquery ) {
3205 return ( context || root ).find( selector );
3210 return this.constructor( context ).find( selector );
3264 closest: function( selectors, context ) { argument
3274 for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
3315 add: function( selector, context ) { argument
3318 jQuery.merge( this.get(), jQuery( selector, context ) )
3620 fireWith: function( context, args ) { argument
3623 args = [ context, args.slice ? args.slice() : args ];
4961 function getAll( context, tag ) { argument
4967 if ( typeof context.getElementsByTagName !== "undefined" ) {
4968 ret = context.getElementsByTagName( tag || "*" );
4970 } else if ( typeof context.querySelectorAll !== "undefined" ) {
4971 ret = context.querySelectorAll( tag || "*" );
4977 if ( tag === undefined || tag && nodeName( context, tag ) ) {
4978 return jQuery.merge( [ context ], ret );
5002 function buildFragment( elems, context, scripts, selection, ignored ) { argument
5004 fragment = context.createDocumentFragment(),
5023 nodes.push( context.createTextNode( elem ) );
5027 tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
9349 context: true
9412 callbackContext = s.context || s,
9415 globalEventContext = s.context &&
10300 jQuery.parseHTML = function( data, context, keepScripts ) { argument
10304 if ( typeof context === "boolean" ) {
10305 keepScripts = context;
10306 context = false;
10311 if ( !context ) {
10316 context = document.implementation.createHTMLDocument( "" );
10321 base = context.createElement( "base" );
10323 context.head.appendChild( base );
10325 context = document;
10334 return [ context.createElement( parsed[ 1 ] ) ];
10337 parsed = buildFragment( [ data ], context, scripts );
10753 jQuery.proxy = function( fn, context ) { argument
10756 if ( typeof context === "string" ) {
10757 tmp = fn[ context ];
10758 context = fn;
10771 return fn.apply( context || this, args.concat( slice.call( arguments ) ) );