Lines Matching defs:Sizzle

25  * Sizzle CSS Selector Engine - v1.0
3144 var Sizzle=function(selector,context,results,seed){results=results||[];
3154 }else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);
3158 }}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);
3159 context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]
3160 }if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);
3161 set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;
3180 }if(extra){Sizzle(extra,origContext,results,seed);
3181 Sizzle.uniqueSort(results)
3184 Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;
3191 Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)
3193 Sizzle.find=function(expr,context,isXML){var set,match;
3207 Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);
3231 var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")
3237 }}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)
3249 }}if(isPartStr){Sizzle.filter(part,checkSet,true)
3286 },PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)
3287 }else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);
3301 },has:function(elem,i,match){return !!Sizzle(match[3],elem).length
3425 if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");
3428 }Sizzle=function(query,context,extra,seed){context=context||document;
3432 for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]
3475 }}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;
3490 i++){Sizzle(selector,root[i],tmpSet)
3491 }return Sizzle.filter(later,tmpSet)
3493 Firebug.Selector=Sizzle