| 5084 | }; |
| 5085 | |
| 5086 | var posProcess = function( selector, context ) { |
| 5087 | var match, |
| 5088 | tmpSet = [], |
| 5089 | later = "", |
| 5090 | root = context.nodeType ? [context] : context; |
| 5091 | |
| 5092 | // Position selectors must be done after the filter |
| 5093 | // And so must :not(positional) so we move all PSEUDOs to the end |
| 5094 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
| 5095 | later += match[0]; |
| 5096 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
| 5097 | } |
| 5098 | |
| 5099 | selector = Expr.relative[selector] ? selector + "*" : selector; |
| 5100 | |
| 5101 | for ( var i = 0, l = root.length; i < l; i++ ) { |
| 5102 | Sizzle( selector, root[i], tmpSet ); |
| 5103 | } |
| 5104 | |
| 5105 | return Sizzle.filter( later, tmpSet ); |
| 5106 | }; |
| 5107 | |
| 5108 | // EXPOSE |
| 5109 | jQuery.find = Sizzle; |