CSS :nth-of-type selector is implemented incorrectly #394

Open
flavorjones opened this Issue Jan 9, 2011 · 3 comments

Comments

Projects
None yet
3 participants
Owner

flavorjones commented Jan 9, 2011

see https://gist.github.com/770885 submitted by Wolfram Arnold via nokogiri-talk for reproduction

Owner

flavorjones commented Jan 9, 2011

see http://www.mail-archive.com/www-archive@w3.org/msg00906.html for one way to correctly implement nth-of-type

that posting also indicates to me that we might want to review the CSS-to-XPath translation for some other selectors.

I'd also love to see this feature implemented. When using Capybara (which depends on Nokogiri), it would be very useful for getting at elements in the DOM to test them

nth-of-type is very convenient to use in Capybara. It's strange that Nokogiri converts it incorrectly.

flavorjones self-assigned this Mar 2, 2015

flavorjones removed the flavorjones label Mar 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment