Skip to content

Conversation

@stevecheckoway
Copy link
Contributor

I think these were formerly tokenizer errors but they no longer are.

Per #107, I understand that #errors should reflect the actual number of errors and that #new-errors are a way to transition to the new errors but I'm not sure if there's a way to indicate that errors have been removed.

Starting from the data state, we have 1. `<` switches to the tag open state 2. `!` switches to the markup declaration open state 3. `--` switches to the comment start state 4. `-` (the third one) switches to the comment start dash state 5. `-` (the fourth one) switches to the comment end state 6. `-` (the fifth one) appends `-` to the comment and does not change state 7. `>` emits the comment token and switches to the data state.
`<!-- -- -->` is not an error. The middle `--` cause the tokenizer to enter the comment end state. The "anything else" clause appends two `-` to the comment token's data and the current input character is reconsumed in the comment state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant