-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
:nth-of-type(n) produces incorrect XPath #1187
Comments
You are right. Looks like CSS3 allows just |
If it helps, the XPath predicate that can be used for this is simply |
|
Oh wait, |
Argh, my bad. I grabbed an XPath expression for |
Ah, yes, |
Could you confirm the fix? |
Looks good to me, thanks! |
Thanks for the catch! |
This code:
Produces the following XPath:
This is incorrect and will result in an empty node set being returned when used to query a document. Instead the XPath should be
//*[position() >= 1]
asnth-of-type(n)
simply returns all nodes matching the type.The text was updated successfully, but these errors were encountered: