-
-
Notifications
You must be signed in to change notification settings - Fork 897
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
CSS - descendant attribute is parsed incorrectly ("div [bar]") #1174
Comments
You are right. I hacked up a fix for this, but it's kind of ugly. I'll post a PR later for review. |
This is a minimum and a bit ugly fix that should work. @tenderlove Can you come up with a better fix? I couldn't manage to get out of the parser conflict hell last night. |
I worked out a better one and committed. Hope you can confirm this! |
@knu nice! Thank you! |
Yep, works great for me 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - I discovered that the CSS parser isn't correctly parsing nameless/classless/idless attribute selectors. I'd expect
div [bar]
to produce the same xpath asdiv *[bar]
, but instead it produces the same xpath asdiv[bar]
.For example:
I started looking into css/parser.y to try and figure it out, but nothing jumped out at me as obviously incorrect. Any hints?
The text was updated successfully, but these errors were encountered: