Sizzle: pure-JavaScript CSS selector engine designed to be easily dropped in to a host library

Sizzle is a pure-JavaScript CSS selector engine designed to be easily dropped into a host library.

A completely standalone selector engine (no library dependencies), Sizzle provides competitive performance for the most frequently used CSS selectors. At only 3KB minified and gzipped, it is highly extensible with an easy-to-use API.

Sizzle is designed for optimal performance with event delegation, provides meaningful error messages for syntax problems, uses a single code path (no XPath), uses no browser-sniffing (feature-detection only), and is Caja-compatible.