Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for last-child, first-of-type, last-of-type pseudo-selectors #223

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

chrishow
Copy link
Contributor

@chrishow chrishow commented Jan 4, 2024

Adds support for pseudo-selectors :

:last-child
:first-of-type
:last-of-type

See #39

@g105b
Copy link
Member

g105b commented Jan 4, 2024

This looks great! It's functionality I've ignored implementing for so long. I'll check this out tonight and do the usual Dom integration test.

@g105b
Copy link
Member

g105b commented Jan 4, 2024

This is super. I've wanted to have this functionality for so long and keep on doing hacky workarounds like $document->querySelectorAll("li")[2] instead of :nth-child(3).

Thank you!

@g105b g105b merged commit 37117b2 into PhpGt:master Jan 4, 2024
13 checks passed
@g105b g105b mentioned this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done January 2024
Development

Successfully merging this pull request may close these issues.

2 participants