Selectors such as:
- :nth-child(2)
- :nth-child(2n+7)
- :nth-child(odd)
Are all parsed to CSSSelectorSimpleMember with value :nth-child(odd)
instead of CSSSelectorMemberFunctionLike with functionName :nth-child( and
parameterExpression odd / 2/2n+7 etc.
I am not sure if these are supposed to be part of public API, if not, then it may not be a bug. I am writing CSS interpreter, and in this context it is problematic.