-
Notifications
You must be signed in to change notification settings - Fork 48
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
Dealing with arguments #13
Comments
I define |
Hm. What about this: I searched a little through http://www.w3.org/TR/css3-selectors/ and I only see two types of selectors that take arguments, and the type of argument each takes is consistent. The negation pseudo-class, Maybe that way this mistake could be avoided without knowing valid XML/HTML tags. |
I'm not sure if I want to go down the route of parsing different types of pseudo classes as different entities. I wanted to make the parser be aware of CSS-like syntax, so if you made up some new selector like This seems important because people are generating lots of language extensions; it would be confusing if some pseudo selectors were parsed differently from others. |
Ok. I will handle my particular issue in my own code. Thanks. |
Right now if I parse the selector
.foo:nth-child(3)
it looks like I'm getting a node whose value is'3'
and type is'tag'
.It seems to me that the parser should differentiate arguments from tags.
But at the same time it probably ought to still report the class
.bar
in.foo:not(.bar)
.What do you think?
The text was updated successfully, but these errors were encountered: