Skip to content

4.0.1

Latest

Choose a tag to compare

@facelessuser facelessuser released this 04 Nov 16:35
· 3 commits to main since this release

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 as div:has(> p) > span.