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

API to return whether a selector has non-standard syntax. #135

Open
chriseppstein opened this issue Mar 29, 2018 · 3 comments
Open

API to return whether a selector has non-standard syntax. #135

chriseppstein opened this issue Mar 29, 2018 · 3 comments

Comments

@chriseppstein
Copy link
Contributor

  1. add a strict parse mode so that any non-standard syntax is an immediate error.
  2. When not strict, it should be possible to find which nodes contain non standard syntax and for complex nodes like Attribute, which part(s) are violating the css spec.
@alexander-akait
Copy link
Collaborator

@chriseppstein Also maybe we can support non standard comments //?

@chriseppstein
Copy link
Contributor Author

I'd rather postcss filter that out so that it's not part of the rule's selector value.

@chriseppstein
Copy link
Contributor Author

postcss/postcss#1149

TIL about postcss-scss. I think the selector parser and tokenizer should be updated to have a syntax option and then the parser should non-standard syntax correctly or error out based on the current syntax setting. Right now it's all mashed together and unpredictable.

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

No branches or pull requests

2 participants