parserino.css.matcher
Matching of CSS selectors against the DOM.
Complex selectors are matched right to left, with backtracking on the descendant and subsequent-sibling combinators. :has() is matched forward.
Functions 2
fn
bool matches(const(SelectorList) * list, DomNode * node, DomNode * scopeElement = null) @nogc nothrow pure @safeDoes the element match any selector of the list? `scope` is the element matched by `:scope` (the root of the query).fn
bool matchesLastCompound(const(SelectorList) * list, size_t item, DomNode * node, DomNode * scopeElement = null) @nogc nothrow pure @safeDoes the element match the last compound of the selector `item` of the list? (a quick test)