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

Validator updates (CSS validation, Turkish İ in htmlparser.js) #1774

Merged
merged 2 commits into from
Feb 4, 2016
Merged

Validator updates (CSS validation, Turkish İ in htmlparser.js) #1774

merged 2 commits into from
Feb 4, 2016

Conversation

powdercloud
Copy link
Contributor

No description provided.

- Adds RuleVisitor to parse_css.
- Explores the entire AST for invalid rules (implementing the TODO
  in the validator code).
- Removes some of the blacklist regexes.
- Adds a simple test with nesting.
This is a character which when in a javascript string
yields .length == 1, but when toLowerCase()'d, yields
.length == 2. htmlparser.js uses .length extensively
and gets thrown off, generating incorrect SAX events.
The fix detects the case (better than the previous
attempt) and only lower cases A-Z instead.

@Gregable had most of the ideas here, including the final fix.

Fixes #1768
@Gregable
Copy link
Member

Gregable commented Feb 4, 2016

LGTM @powdercloud

powdercloud added a commit that referenced this pull request Feb 4, 2016
Validator updates (CSS validation, Turkish İ in htmlparser.js)
@powdercloud powdercloud merged commit bf07b12 into ampproject:master Feb 4, 2016
@powdercloud powdercloud deleted the update-github branch April 8, 2016 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants