I would like to find the portion of the jquery source code that implements the contains psuedo-selector. Because I’d like to see how they’ve done it to give me ideas for something similar I’m working on.
But I can’t seem to find where this is implemented.
Can anyone else?
It belongs to Sizzle (selectors engine): https://github.com/jquery/sizzle/blob/master/sizzle.js#L753