4.0.1
- FIX: Cache whether an element is or has a matching descendant when matching
:has()to avoid quadratic time
on deeply nested documents. - FIX: Cache whether the parent matches when matching the child combinator (
a > b) so it is matched once for
all of its children, avoiding quadratic time when the parent is expensive, such asdiv:has(> p) > span.