We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Expected: ["//[@A = '1']//[@b = '2']"] Actual: ["//*[@A = '1' and @b = '2']"]
The text was updated successfully, but these errors were encountered:
Reproduced. Will take a look.
Workaround is to use the universal selector, '*':
Nokogiri::CSS.xpath_for("[a='1'] [b='2']") # => ["//*[@a = '1' and @b = '2']"] Nokogiri::CSS.xpath_for("[a='1'] *[b='2']") # => ["//*[@a = '1']//*[@b = '2']"]
Sorry, something went wrong.
This has been fixed for quite a long time! Sorry for not closing this years ago. :)
No branches or pull requests
Expected:
["//[@A = '1']//[@b = '2']"]
Actual:
["//*[@A = '1' and @b = '2']"]
The text was updated successfully, but these errors were encountered: