| 4654 | }; |
| 4655 | |
| 4656 | var posProcess = function( selector, context ) { |
| 4657 | var match, |
| 4658 | tmpSet = [], |
| 4659 | later = "", |
| 4660 | root = context.nodeType ? [context] : context; |
| 4661 | |
| 4662 | // Position selectors must be done after the filter |
| 4663 | // And so must :not(positional) so we move all PSEUDOs to the end |
| 4664 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
| 4665 | later += match[0]; |
| 4666 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
| 4667 | } |
| 4668 | |
| 4669 | selector = Expr.relative[selector] ? selector + "*" : selector; |
| 4670 | |
| 4671 | for ( var i = 0, l = root.length; i < l; i++ ) { |
| 4672 | Sizzle( selector, root[i], tmpSet ); |
| 4673 | } |
| 4674 | |
| 4675 | return Sizzle.filter( later, tmpSet ); |
| 4676 | }; |
| 4677 | |
| 4678 | // EXPOSE |
| 4679 | jQuery.find = Sizzle; |