Skip to content

Support :is() and :where() as aliases of :matches() - #154

Open
gravitypdf-bot wants to merge 3 commits into
mainfrom
fix/issue-136
Open

gravitypdf-bot wants to merge 3 commits into
mainfrom
fix/issue-136

Conversation

@gravitypdf-bot

Copy link
Copy Markdown
Contributor

Fixes #136.

:is() and :where() are now aliases of :matches() in PseudoClass. They are also added to Util::SELECTOR_ARGUMENT_PSEUDO_CLASSES, so a positional argument such as :is(:first) applies to the whole set, as it does for :matches(). QueryPath doesn't use specificity, so :where() matches as :is() does. The deprecated QueryPathEventHandler is not changed.

Tests

tests/Issues/Issue136Test.php covers both aliases in find(), filter() and is(), positional arguments, and upper-case names.

Every PR in this set adds its CHANGELOG line at the end of # Unreleased changes, so each one after the first needs a one-line conflict resolved there.

🤖 Generated with Claude Code

gravitypdf-bot and others added 3 commits October 26, 2026 17:18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.24%. Comparing base (6ae6acf) to head (30aacb1).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #154      +/-   ##
============================================
+ Coverage     90.69%   91.24%   +0.54%     
- Complexity     1424     1443      +19     
============================================
  Files            25       26       +1     
  Lines          3170     3185      +15     
============================================
+ Hits           2875     2906      +31     
+ Misses          295      279      -16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Support :is() and :where() as aliases of :matches()

1 participant