| 5264 | }; |
| 5265 | |
| 5266 | var posProcess = function( selector, context, seed ) { |
| 5267 | var match, |
| 5268 | tmpSet = [], |
| 5269 | later = "", |
| 5270 | root = context.nodeType ? [context] : context; |
| 5271 | |
| 5272 | // Position selectors must be done after the filter |
| 5273 | // And so must :not(positional) so we move all PSEUDOs to the end |
| 5274 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
| 5275 | later += match[0]; |
| 5276 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
| 5277 | } |
| 5278 | |
| 5279 | selector = Expr.relative[selector] ? selector + "*" : selector; |
| 5280 | |
| 5281 | for ( var i = 0, l = root.length; i < l; i++ ) { |
| 5282 | Sizzle( selector, root[i], tmpSet, seed ); |
| 5283 | } |
| 5284 | |
| 5285 | return Sizzle.filter( later, tmpSet ); |
| 5286 | }; |
| 5287 | |
| 5288 | // EXPOSE |
| 5289 | // Override sizzle attribute retrieval |