Lines Matching full:selector

155 	jQuery = function( selector, context ) {  argument
159 return new jQuery.fn.init( selector, context );
523 * Sizzle CSS Selector Engine v2.3.6
757 function Sizzle( selector, context, results, seed ) { argument
766 // Return early from calls with invalid selector or context
767 if ( typeof selector !== "string" || !selector ||
780 // If the selector is sufficiently simple, try using a "get*By*" DOM method
782 if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
784 // ID selector
817 // Type selector
819 push.apply( results, context.getElementsByTagName( selector ) );
822 // Class selector
833 !nonnativeSelectorCache[ selector + " " ] &&
834 ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
840 newSelector = selector;
845 // In such cases, we work around the behavior by prefixing every selector in the
846 // list with an ID selector referencing the scope context.
851 ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
854 newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
869 // Prefix every selector in the list
870 groups = tokenize( selector );
885 nonnativeSelectorCache( selector, true );
896 return select( selector.replace( rtrim, "$1" ), context, results, seed );
1027 // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
1028 // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
1375 // In-page `selector#id sibling-combinator selector` fails
1409 // IE's :disabled selector does not pick up the children of disabled fieldsets
2090 "not": markFunction( function( selector ) { argument
2092 // Trim the selector passed to compile
2097 matcher = compile( selector.replace( rtrim, "$1" ) );
2122 "has": markFunction( function( selector ) { argument
2124 return Sizzle( selector, elem ).length > 0;
2135 // "Whether an element is represented by a :lang() selector
2315 tokenize = Sizzle.tokenize = function( selector, parseOnly ) { argument
2318 cached = tokenCache[ selector + " " ];
2324 soFar = selector;
2379 Sizzle.error( selector ) :
2382 tokenCache( selector, groups ).slice( 0 );
2388 selector = "";
2390 selector += tokens[ i ].value;
2392 return selector;
2476 function multipleContexts( selector, contexts, results ) { argument
2480 Sizzle( selector, contexts[ i ], results );
2506 function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { argument
2521 selector || "*",
2527 matcherIn = preFilter && ( seed || !selector ) ?
2794 compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { argument
2798 cached = compilerCache[ selector + " " ];
2804 match = tokenize( selector );
2818 selector,
2822 // Save selector and tokenization
2823 cached.selector = selector;
2830 * selector functions
2831 * @param {String|Function} selector A selector or a pre-compiled
2832 * selector function built with Sizzle.compile
2837 select = Sizzle.select = function( selector, context, results, seed ) { argument
2839 compiled = typeof selector === "function" && selector,
2840 match = !seed && tokenize( ( selector = compiled.selector || selector ) );
2844 // Try to minimize operations if there is only one selector in the list and no seed
2848 // Reduce context if the leading compound selector is an ID
2863 selector = selector.slice( tokens.shift().value.length );
2867 i = matchExpr[ "needsContext" ].test( selector ) ? 0 : tokens.length;
2886 selector = seed.length && toSelector( tokens );
2887 if ( !selector ) {
2899 // Provide `match` to avoid retokenization if we modified the selector above
2900 ( compiled || compile( selector, match ) )(
2905 !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
3079 find: function( selector ) { argument
3084 if ( typeof selector !== "string" ) {
3085 return this.pushStack( jQuery( selector ).filter( function() {
3097 jQuery.find( selector, self[ i ], ret );
3102 filter: function( selector ) { argument
3103 return this.pushStack( winnow( this, selector || [], false ) );
3105 not: function( selector ) { argument
3106 return this.pushStack( winnow( this, selector || [], true ) );
3108 is: function( selector ) { argument
3112 // If this is a positional/relative selector, check membership in the returned set
3114 typeof selector === "string" && rneedsContext.test( selector ) ?
3115 jQuery( selector ) :
3116 selector || [],
3135 init = jQuery.fn.init = function( selector, context, root ) { argument
3139 if ( !selector ) {
3148 if ( typeof selector === "string" ) {
3149 if ( selector[ 0 ] === "<" &&
3150 selector[ selector.length - 1 ] === ">" &&
3151 selector.length >= 3 ) {
3154 match = [ null, selector, null ];
3157 match = rquickExpr.exec( selector );
3207 return ( context || root ).find( selector );
3212 return this.constructor( context ).find( selector );
3216 } else if ( selector.nodeType ) {
3217 this[ 0 ] = selector;
3223 } else if ( isFunction( selector ) ) {
3225 root.ready( selector ) :
3228 selector( jQuery );
3231 return jQuery.makeArray( selector, this );
3304 // Index in selector
3317 add: function( selector, context ) { argument
3320 jQuery.merge( this.get(), jQuery( selector, context ) )
3325 addBack: function( selector ) { argument
3326 return this.add( selector == null ?
3327 this.prevObject : this.prevObject.filter( selector )
3393 jQuery.fn[ name ] = function( until, selector ) { argument
3397 selector = until;
3400 if ( selector && typeof selector === "string" ) {
3401 matched = jQuery.filter( selector, matched );
5123 function on( elem, types, selector, data, fn, one ) { argument
5129 // ( types-Object, selector, data )
5130 if ( typeof selector !== "string" ) {
5133 data = data || selector;
5134 selector = undefined;
5137 on( elem, type, selector, data, types[ type ], one );
5145 fn = selector;
5146 data = selector = undefined;
5148 if ( typeof selector === "string" ) {
5150 // ( types, selector, fn )
5157 data = selector;
5158 selector = undefined;
5180 jQuery.event.add( this, types, fn, data, selector );
5192 add: function( elem, types, handler, data, selector ) { argument
5208 selector = handleObjIn.selector;
5213 if ( selector ) {
5214 jQuery.find.matchesSelector( documentElement, selector );
5252 // If selector defined, determine special event api type, otherwise given type
5253 type = ( selector ? special.delegateType : special.bindType ) || type;
5265 selector: selector, property
5266 needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
5294 if ( selector ) {
5307 remove: function( elem, types, handler, selector, mappedTypes ) { argument
5329 jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
5335 type = ( selector ? special.delegateType : special.bindType ) || type;
5348 ( !selector || selector === handleObj.selector ||
5349 selector === "**" && handleObj.selector ) ) {
5352 if ( handleObj.selector ) {
5479 sel = handleObj.selector + " ";
5903 on: function( types, selector, data, fn ) { argument
5904 return on( this, types, selector, data, fn );
5906 one: function( types, selector, data, fn ) { argument
5907 return on( this, types, selector, data, fn, 1 );
5909 off: function( types, selector, fn ) { argument
5919 handleObj.selector,
5926 // ( types-object [, selector] )
5928 this.off( type, selector, types[ type ] );
5932 if ( selector === false || typeof selector === "function" ) {
5935 fn = selector;
5936 selector = undefined;
5942 jQuery.event.remove( this, types, fn, selector );
6123 function remove( elem, selector, keepData ) { argument
6125 nodes = selector ? jQuery.filter( selector, elem ) : elem,
6227 detach: function( selector ) { argument
6228 return remove( this, selector, true );
6231 remove: function( selector ) { argument
6232 return remove( this, selector );
6373 jQuery.fn[ name ] = function( selector ) {
6376 insert = jQuery( selector ),
7543 // Don't match elem in the :animated selector
8416 hasClass: function( selector ) { argument
8420 className = " " + selector + " ";
9946 unwrap: function( selector ) { argument
9947 this.parent( selector ).not( "body" ).each( function() {
10359 var selector, type, response,
10364 selector = stripAndCollapse( url.slice( off ) );
10396 self.html( selector ?
10398 // If a selector was specified, locate the right elements in a dummy div
10400 jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
10718 delegate: function( selector, types, data, fn ) { argument
10719 return this.on( types, selector, data, fn );
10721 undelegate: function( selector, types, fn ) { argument
10723 // ( namespace ) or ( selector, types [, fn] )
10725 this.off( selector, "**" ) :
10726 this.off( types, selector || "**", fn );