Skip to content
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 selector :nth-child not working properly #878

Closed
Janther opened this issue Apr 3, 2013 · 3 comments
Closed

CSS selector :nth-child not working properly #878

Janther opened this issue Apr 3, 2013 · 3 comments

Comments

@Janther
Copy link

Janther commented Apr 3, 2013

:nth-child(even) works but :nth-child(3) doesn't (it returns [] and trying the same selector with jQuery works).
It used to work in previous version I had no problem.

@gcirne
Copy link

gcirne commented Apr 11, 2013

I'm having the same problem (version 1.5.9). My current workaround is to use xpath selectors instead.

@flavorjones
Copy link
Member

Hello!

Thanks for asking this question! However, without more information,
Team Nokogiri cannot reproduce your issue, and so we cannot offer much
help.

Please provide us with:

  • The output of nokogiri -v, which will provide details about your
    platform and versions of ruby, libxml2 and nokogiri.

For more information about requesting help or reporting bugs, please
take a look at http://bit.ly/nokohelp

Worth noting is that libxml 2.9.0 has a known bug in xpath query evaluation -- see #829 for background.

Thank you so much!

@timdiggins
Copy link

I think this is likely to be the same problem as #829, so suggest this is closed as a duplicate

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

No branches or pull requests

4 participants