sizzle

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

simmerjs

A pure Javascript reverse CSS selector engine which calculates a DOM element's unique CSS selector on the current page.