Skip to content

Fix errors in doctypes #116

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

Closed
wants to merge 2 commits into from

Conversation

stevecheckoway
Copy link
Contributor

A > after DOCTYPE is a missing-doctype-name parse error but it is
not also a missing-whitespace-before-doctype-name parse error.

Doctypes with a public identifier is a (currently unnamed) parse error.

A `>` after `DOCTYPE` is a missing-doctype-name parse error but it is
not also a missing-whitespace-before-doctype-name parse error.

Doctypes with a public identifier is a (currently unnamed) parse error.
A DOCTYPE token is an error in one of three cases:
1. The token's name is not `html`;
2. The token's public identifier is not missing;
3. The token's system identifier is not missing and the token's system
   identifier isn't `about:legacy-compat`.

This appears to have changed at some point from a much more complex set
of conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant