Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve detection of element in query #168

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

tfedor
Copy link
Contributor

@tfedor tfedor commented Jun 5, 2022

This fixes #63, but also incorrect queries from selectors that combined multiple things, e.g. id and class, or class and attribute.

@g105b
Copy link
Member

g105b commented Jun 6, 2022

Thank you @tfedor for this! It's a bug I've been wanting to resolve for a while.

I will add a couple of extra tests that I identified from use in another project. Looks good so far.

@g105b
Copy link
Member

g105b commented Jun 8, 2022

After checking the failing test case on a real-world project I've been working on, it could be simply articulated by this single test I've added.

The test simply looks for two named items within a form.

Your bugfix resolves the issue that was present with this, so thank you very much.

@g105b g105b merged commit f91d680 into PhpGt:master Jun 8, 2022
@tfedor tfedor deleted the bugfix-element-detection branch June 8, 2022 11:26
Alkarex added a commit to Alkarex/CssXPath that referenced this pull request Aug 17, 2022
https://editorconfig.org/
This standard file inscructs text editors about the whitespace rules to use in any given project, so that contributors will automatically use the correct convention.
I could see for instance that PhpGt#168 introduced a mix of spaces and tabs
@Alkarex Alkarex mentioned this pull request Aug 17, 2022
g105b pushed a commit that referenced this pull request Aug 17, 2022
https://editorconfig.org/
This standard file inscructs text editors about the whitespace rules to use in any given project, so that contributors will automatically use the correct convention.
I could see for instance that #168 introduced a mix of spaces and tabs
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Child with named attribute fails to select
2 participants