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

Fix entity errors #113

Closed
wants to merge 1 commit into from

Conversation

stevecheckoway
Copy link
Contributor

Named character references in attributes whose last character is not ;
and for which the next input character is = (or ASCII alphanumeric,
but this isn't tested here), flushes the code points consumed as a
character reference without adding a parse error.

Named character references not in attributes whose last character is not
; are errors, regardless of the following character as noted in the
#new-errors section but without an entry in #errors, the number of
errors are wrong. (See
#107).

Separately, this adds the missing expected-doctype-but-got-start-tag
error.

Named character references in attributes whose last character is not `;`
and for which the next input character is `=` (or ASCII alphanumeric,
but this isn't tested here), flushes the code points consumed as a
character reference _without_ adding a parse error.

Named character references not in attributes whose last character is not
`;` are errors, regardless of the following character as noted in the
`#new-errors` section but without an entry in `#errors`, the number of
errors are wrong. (See
html5lib#107).

Separately, this adds the missing expected-doctype-but-got-start-tag
error.
@stevecheckoway
Copy link
Contributor Author

Should the old error be a named-entity-without-semicolon instead of missing-semicolon-after-character-reference?

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.

None yet

1 participant