Skip to content

Editorial: remove redundant decimal character reference start state#12707

Merged
annevk merged 1 commit into
mainfrom
decimal-charref-start-state
Jul 19, 2026
Merged

Editorial: remove redundant decimal character reference start state#12707
annevk merged 1 commit into
mainfrom
decimal-charref-start-state

Conversation

@annevk

@annevk annevk commented Jul 19, 2026

Copy link
Copy Markdown
Member

The numeric character reference state can dispatch on ASCII digits directly and reconsume in the decimal character reference state, so the separate start state was pure indirection.

This is editorial with no change in behavior: the same absence-of-digits-in-numeric-character-reference parse error, flush, and reconsume-in-return-state all occur as before. The removed state's generated ID is preserved on the ASCII digit case so existing anchors keep working.

Fixes #2733.


/index.html ( diff )
/parsing.html ( diff )

The numeric character reference state can dispatch on ASCII digits
directly and reconsume in the decimal character reference state, so the
separate start state was pure indirection. The removed state's generated
ID is preserved on the ASCII digit case for existing anchors.

Fixes #2733.
@annevk
annevk merged commit 85b40db into main Jul 19, 2026
2 checks passed
@annevk
annevk deleted the decimal-charref-start-state branch July 19, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Parser] We can get rid of Decimal character reference start state in tokenizer

2 participants