| @@ 5266-5286 (lines=21) @@ | ||
| 5263 | return documentElement ? documentElement.nodeName !== "HTML" : false; |
|
| 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 |
|
| @@ 4609-4629 (lines=21) @@ | ||
| 4606 | return documentElement ? documentElement.nodeName !== "HTML" : false; |
|
| 4607 | }; |
|
| 4608 | ||
| 4609 | var posProcess = function( selector, context ) { |
|
| 4610 | var match, |
|
| 4611 | tmpSet = [], |
|
| 4612 | later = "", |
|
| 4613 | root = context.nodeType ? [context] : context; |
|
| 4614 | ||
| 4615 | // Position selectors must be done after the filter |
|
| 4616 | // And so must :not(positional) so we move all PSEUDOs to the end |
|
| 4617 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
|
| 4618 | later += match[0]; |
|
| 4619 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
|
| 4620 | } |
|
| 4621 | ||
| 4622 | selector = Expr.relative[selector] ? selector + "*" : selector; |
|
| 4623 | ||
| 4624 | for ( var i = 0, l = root.length; i < l; i++ ) { |
|
| 4625 | Sizzle( selector, root[i], tmpSet ); |
|
| 4626 | } |
|
| 4627 | ||
| 4628 | return Sizzle.filter( later, tmpSet ); |
|
| 4629 | }; |
|
| 4630 | ||
| 4631 | // EXPOSE |
|
| 4632 | jQuery.find = Sizzle; |
|