Lines Matching refs:match

94 		var match, elem, ret, doc;
122 match = [ null, selector, null ];
125 match = quickExpr.exec( selector );
129 if ( match && (match[1] || !context) ) {
132 if ( match[1] ) {
150 ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
158 elem = document.getElementById( match[2] );
165 if ( elem.id !== match[2] ) {
839 var match = rwebkit.exec( ua ) ||
845 return { browser: match[1] || "", version: match[2] || "0" };
1585 var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
1587 if ( match ) {
1588 return !(match === true || elem.getAttribute("classid") !== match);
3517 var type, i = 0, match, namespaces, preType,
3545 match = rnamespaces.exec( type );
3548 if ( match ) {
3549 namespaces = match[0];
3586 var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
3615 match = jQuery( event.target ).closest( selectors, event.currentTarget );
3617 for ( i = 0, l = match.length; i < l; i++ ) {
3618 close = match[i];
3646 match = elems[i];
3648 if ( maxLevel && match.level > maxLevel ) {
3652 event.currentTarget = match.elem;
3653 event.data = match.handleObj.data;
3654 event.handleObj = match.handleObj;
3656 ret = match.handleObj.origHandler.apply( match.elem, arguments );
3659 maxLevel = match.level;
3787 Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
3905 var match,
3908 if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
3909 var left = match[1];
3910 match.splice( 1, 1 );
3913 match[1] = (match[1] || "").replace( rBackslash, "" );
3914 set = Expr.find[ type ]( match, context, isXML );
3917 expr = expr.replace( Expr.match[ type ], "" );
3934 var match, anyFound,
3942 if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
3945 left = match[1];
3949 match.splice(1,1);
3960 match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
3962 if ( !match ) {
3965 } else if ( match === true ) {
3970 if ( match ) {
3973 found = filter( item, match, i, curLoop );
3997 expr = expr.replace( Expr.match[ type ], "" );
4031 match: {
4148 ID: function( match, context, isXML ) {
4150 var m = context.getElementById(match[1]);
4157 NAME: function( match, context ) {
4160 results = context.getElementsByName( match[1] );
4163 if ( results[i].getAttribute("name") === match[1] ) {
4172 TAG: function( match, context ) {
4174 return context.getElementsByTagName( match[1] );
4179 CLASS: function( match, curLoop, inplace, result, not, isXML ) {
4180 match = " " + match[1].replace( rBackslash, "" ) + " ";
4183 return match;
4188 … (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
4202 ID: function( match ) {
4203 return match[1].replace( rBackslash, "" );
4206 TAG: function( match, curLoop ) {
4207 return match[1].replace( rBackslash, "" ).toLowerCase();
4210 CHILD: function( match ) {
4211 if ( match[1] === "nth" ) {
4212 if ( !match[2] ) {
4213 Sizzle.error( match[0] );
4216 match[2] = match[2].replace(/^\+|\s*/g, '');
4220 match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
4221 !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
4224 match[2] = (test[1] + (test[2] || 1)) - 0;
4225 match[3] = test[3] - 0;
4227 else if ( match[2] ) {
4228 Sizzle.error( match[0] );
4232 match[0] = done++;
4234 return match;
4237 ATTR: function( match, curLoop, inplace, result, not, isXML ) {
4238 var name = match[1] = match[1].replace( rBackslash, "" );
4241 match[1] = Expr.attrMap[name];
4245 match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
4247 if ( match[2] === "~=" ) {
4248 match[4] = " " + match[4] + " ";
4251 return match;
4254 PSEUDO: function( match, curLoop, inplace, result, not ) {
4255 if ( match[1] === "not" ) {
4257 if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
4258 match[3] = Sizzle(match[3], null, null, curLoop);
4261 var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
4270 } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
4274 return match;
4277 POS: function( match ) {
4278 match.unshift( true );
4280 return match;
4315 has: function( elem, i, match ) {
4316 return !!Sizzle( match[3], elem ).length;
4378 last: function( elem, i, match, array ) {
4390 lt: function( elem, i, match ) {
4391 return i < match[3] - 0;
4394 gt: function( elem, i, match ) {
4395 return i > match[3] - 0;
4398 nth: function( elem, i, match ) {
4399 return match[3] - 0 === i;
4402 eq: function( elem, i, match ) {
4403 return match[3] - 0 === i;
4407 PSEUDO: function( elem, match, i, array ) {
4408 var name = match[1],
4412 return filter( elem, i, match, array );
4415 …return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >=…
4418 var not = match[3];
4433 CHILD: function( elem, match ) {
4434 var type = match[1],
4462 var first = match[2],
4463 last = match[3];
4469 var doneName = match[0],
4495 ID: function( elem, match ) {
4496 return elem.nodeType === 1 && elem.getAttribute("id") === match;
4499 TAG: function( elem, match ) {
4500 return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
4503 CLASS: function( elem, match ) {
4505 .indexOf( match ) > -1;
4508 ATTR: function( elem, match ) {
4509 var name = match[1],
4516 type = match[2],
4517 check = match[4];
4540 POS: function( elem, match, i, array ) {
4541 var name = match[2],
4545 return filter( elem, i, match, array );
4551 var origPOS = Expr.match.POS,
4556 for ( var type in Expr.match ) {
4557 Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); variable in Expr
4558 …Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace…
4737 Expr.find.ID = function( match, context, isXML ) { argument
4739 var m = context.getElementById(match[1]);
4742 …m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeVal…
4749 Expr.filter.ID = function( elem, match ) { argument
4752 return elem.nodeType === 1 && node && node.nodeValue === match;
4772 Expr.find.TAG = function( match, context ) { argument
4773 var results = context.getElementsByTagName( match[1] );
4776 if ( match[1] === "*" ) {
4828 var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
4830 if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
4832 if ( match[1] ) {
4836 } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
4837 return makeArray( context.getElementsByClassName( match[2] ), extra );
4848 } else if ( match && match[3] ) {
4849 var elem = context.getElementById( match[3] );
4856 if ( elem.id === match[3] ) {
4940 if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
4978 Expr.find.CLASS = function( match, context, isXML ) { argument
4980 return context.getElementsByClassName(match[1]);
4993 var match = false;
4999 match = checkSet[elem.sizset];
5009 match = elem;
5016 checkSet[i] = match;
5026 var match = false;
5032 match = checkSet[elem.sizset];
5044 match = true;
5049 match = elem;
5057 checkSet[i] = match;
5087 var match,
5094 while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
5095 later += match[0];
5096 selector = selector.replace( Expr.match.PSEUDO, "" );
5127 POS = jQuery.expr.match.POS,
5204 var match, selector,
5221 match = matches[ selector ];
5223 if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {
7010 var match;
7014 while( ( match = rheaders.exec( responseHeadersString ) ) ) {
7015 responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
7018 match = responseHeaders[ key.toLowerCase() ];
7020 return match === undefined ? null : match;