{ } qjs-modules

css-selectors

Source: lib/css-selectors.js (pure JS)

Compiles CSS selectors into predicate functions (for matching against a DOM-like tree).

Exports

ExportArgsKindDescription
parseSelectors(s)1functionParses a selector string s into a matcher.
emitPredicates(node)1functionEmits the predicate(s) for a parsed selector node.