Skip to content

Test nested :not() selector support - #138

Merged
gjtorikian merged 2 commits into
mainfrom
gjt/nested-not-selector-test
May 3, 2026
Merged

Test nested :not() selector support#138
gjtorikian merged 2 commits into
mainfrom
gjt/nested-not-selector-test

Conversation

@gjtorikian

Copy link
Copy Markdown
Owner

Summary

  • Stacks on top of Bump lol_html from 2.7.2 to 2.8.1 #136 (lol_html 2.8.1 bump).
  • lol_html 2.8 added support for nested :not() with simple selectors. This adds parser-level coverage (Selma::Selector.new(match_element: "div:not(:not(.foo))") no longer raises) and a functional rewriter test confirming a:not(:not(.keep)) matches the expected <a> elements.

Test plan

  • bundle exec rake test — 203 runs, 976 assertions, 0 failures

lol_html 2.8 added support for nested :not() with simple selectors
(e.g. div:not(:not(.foo))). Lock in selma's exposure of this via
parser-level and rewriter-level tests so a future lol_html regression
or selector wrapper change is caught.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Base automatically changed from dependabot/cargo/lol_html-2.8.1 to main May 3, 2026 19:16
@gjtorikian
gjtorikian merged commit 9a64889 into main May 3, 2026
6 of 9 checks passed
@gjtorikian
gjtorikian deleted the gjt/nested-not-selector-test branch May 3, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant