Skip to content

Commit 85b40db

Browse files
committed
Editorial: remove redundant decimal character reference start state
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.
1 parent 56674fb commit 85b40db

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

source

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -144094,6 +144094,7 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144094144094
</dl>
144095144095
</div>
144096144096

144097+
144097144098
<h5><dfn>Numeric character reference state</dfn></h5>
144098144099

144099144100
<div algorithm>
@@ -144103,28 +144104,14 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144103144104
<p>Consume the <span>next input character</span>:</p>
144104144105

144105144106
<dl class="switch">
144106-
144107144107
<dt>U+0078 LATIN SMALL LETTER X</dt>
144108144108
<dt>U+0058 LATIN CAPITAL LETTER X</dt>
144109144109
<dd>Append the <span>current input character</span> to the <var data-x="temporary
144110144110
buffer">temporary buffer</var>. Switch to the <span>hexadecimal character reference start
144111144111
state</span>.</dd>
144112144112

144113-
<dt>Anything else</dt>
144114-
<dd><span>Reconsume</span> in the <span>decimal character reference start state</span>.</dd>
144115-
</dl>
144116-
</div>
144117-
144118-
144119-
<h5><dfn>Hexadecimal character reference start state</dfn></h5>
144120-
144121-
<div algorithm>
144122-
<p>Consume the <span>next input character</span>:</p>
144123-
144124-
<dl class="switch">
144125-
144126-
<dt><span data-x="ASCII hex digits">ASCII hex digit</span></dt>
144127-
<dd><span>Reconsume</span> in the <span>hexadecimal character reference state</span>.</dd>
144113+
<dt id="decimal-character-reference-start-state"><span data-x="ASCII digits">ASCII digit</span></dt>
144114+
<dd><span>Reconsume</span> in the <span>decimal character reference state</span>.</dd>
144128144115

144129144116
<dt>Anything else</dt>
144130144117
<dd>This is an <span
@@ -144135,15 +144122,14 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144135144122
</div>
144136144123

144137144124

144138-
<h5><dfn>Decimal character reference start state</dfn></h5>
144125+
<h5><dfn>Hexadecimal character reference start state</dfn></h5>
144139144126

144140144127
<div algorithm>
144141144128
<p>Consume the <span>next input character</span>:</p>
144142144129

144143144130
<dl class="switch">
144144-
144145-
<dt><span data-x="ASCII digits">ASCII digit</span></dt>
144146-
<dd><span>Reconsume</span> in the <span>decimal character reference state</span>.</dd>
144131+
<dt><span data-x="ASCII hex digits">ASCII hex digit</span></dt>
144132+
<dd><span>Reconsume</span> in the <span>hexadecimal character reference state</span>.</dd>
144147144133

144148144134
<dt>Anything else</dt>
144149144135
<dd>This is an <span

0 commit comments

Comments
 (0)