MCPcopy Create free account
hub / github.com/unconed/TermKit / posProcess

Function posProcess

HTML/jquery.js:5086–5106  ·  view source on GitHub ↗
( selector, context )

Source from the content-addressed store, hash-verified

5084};
5085
5086var 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
5109jQuery.find = Sizzle;

Callers 1

SizzleFunction · 0.70

Calls 1

SizzleFunction · 0.70

Tested by

no test coverage detected