sizzle

A pure-JavaScript, bottom-up CSS selector engine designed to be easily dropped in to a host library.

sizzleselectorjquery

http://sizzlejs.com/