Skip to content

Improve detection of element in query#168

Merged
g105b merged 4 commits intophpgt:masterfrom
tfedor:bugfix-element-detection
Jun 8, 2022
Merged

Improve detection of element in query#168
g105b merged 4 commits intophpgt:masterfrom
tfedor:bugfix-element-detection

Conversation

@tfedor
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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.

Child with named attribute fails to select

2 participants