| 5154 | }; |
| 5155 | |
| 5156 | var posProcess = function( selector, context ) { |
| 5157 | var match, |
| 5158 | tmpSet = [], |
| 5159 | later = "", |
| 5160 | root = context.nodeType ? [context] : context; |
| 5161 | |
| 5162 | // Position selectors must be done after the filter |
| 5163 | // And so must :not(positional) so we move all PSEUDOs to the end |
| 5164 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
| 5165 | later += match[0]; |
| 5166 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
| 5167 | } |
| 5168 | |
| 5169 | selector = Expr.relative[selector] ? selector + "*" : selector; |
| 5170 | |
| 5171 | for ( var i = 0, l = root.length; i < l; i++ ) { |
| 5172 | Sizzle( selector, root[i], tmpSet ); |
| 5173 | } |
| 5174 | |
| 5175 | return Sizzle.filter( later, tmpSet ); |
| 5176 | }; |
| 5177 | |
| 5178 | // EXPOSE |
| 5179 | jQuery.find = Sizzle; |