-
Notifications
You must be signed in to change notification settings - Fork 73
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xpath position function not working properly #40
Comments
thanks for report. it is a bug of |
Maybe I can help debugging it and open a PR, do you have an idea of where to look in the code? |
Sorry, it was not about If you are interesting, you can start at |
Hi there,
First of all, thank you for the packages, they're very useful 馃殌
I've been having issues with the
position
function and I'm not sure if it's an issue with the htmlquery package or the xpath package, here's an example:I would expect this to filter all the nodes that have the class
test
and have a position == 1, so only the first<a />
element. But instead, I get all the nodes. If I tryposition()=2
I get nothing back.If I instead use this xpath, it gives me the correct element:
If I try this on the browser it works, so I'm not sure if it is expected that it works this way here 馃.
What could be the problem?
Thank you again!
The text was updated successfully, but these errors were encountered: