chjj / zest

An absurdly fast CSS selector engine.
MIT License
238 stars 14 forks source link

Parsing error #10

Closed arextar closed 12 years ago

arextar commented 12 years ago

:nth-match doesn't appear to be working because the parser is splitting at the comma (e.g. ":nth-match(b,3)" is being parsed as 2 selectors: ":nth-match(b" and "3)")

chjj commented 12 years ago

nth-match mistakenly takes the last argument instead of the first one as the n. I'll push a fix for this soon. None of the nth-last selectors have ever been implemented in zest. I've added this as well.

If I accept this pull request, I'll probably get merge/rebase conflicts.