Skip to content

Commit 8d28757

Browse files
JonathanOzcorpan
authored andcommitted
Regression fix: Lost ampersands in Character Reference State's Anything Else case
The Anything Else case of the Character Reference State discarded the ampersand that had been consumed to enter the state. This led to e.g. in the Data State, "&*" emitting only a "*" char token, when you'd expect both a "&" and "*" char token. This regressed in ee19894.
1 parent e293d6c commit 8d28757

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

source

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103964,23 +103964,23 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
103964103964

103965103965
<h5><dfn>Character reference state</dfn></h5>
103966103966

103967-
<p>Consume the <span>next input character</span>:</p>
103967+
<p>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Append
103968+
a U+0026 AMPERSAND (&amp;) character to the <var data-x="temporary buffer">temporary
103969+
buffer</var>. Consume the <span>next input character</span>:</p>
103968103970

103969103971
<dl class="switch">
103970103972

103971103973
<dt><span data-x="ASCII alphanumeric">ASCII alphanumeric</span></dt>
103972-
<dd><p>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Append
103973-
a U+0026 AMPERSAND (&amp;) character to the <var data-x="temporary buffer">temporary
103974-
buffer</var>. <span>Reconsume</span> in the <span>named character reference state</span>.</dd>
103974+
<dd><span>Reconsume</span> in the <span>named character reference state</span>.</dd>
103975103975

103976103976
<dt>U+0023 NUMBER SIGN (#)</dt>
103977-
<dd><p>Set the <var data-x="temporary buffer">temporary buffer</var> to the empty string. Append
103978-
a U+0026 AMPERSAND (&amp;) character and the <span>current input character</span> to the <var
103979-
data-x="temporary buffer">temporary buffer</var>. Switch to the <span>numeric character reference
103980-
state</span>.</dd>
103977+
<dd>Append the <span>current input character</span> to the
103978+
<var data-x="temporary buffer">temporary buffer</var>. Switch to the <span>numeric character
103979+
reference state</span>.</dd>
103981103980

103982103981
<dt>Anything else</dt>
103983-
<dd><span>Reconsume</span> in the <var data-x="return state">return state</var>.</dd>
103982+
<dd><span>Flush code points consumed as a character reference</span>. <span>Reconsume</span> in
103983+
the <var data-x="return state">return state</var>.</dd>
103984103984

103985103985
</dl>
103986103986

@@ -120685,6 +120685,7 @@ INSERT INTERFACES HERE
120685120685
Jonas Sicking,
120686120686
Jonathan Cook,
120687120687
Jonathan Neal,
120688+
Jonathan Oddy,
120688120689
Jonathan Rees,
120689120690
Jonathan Watt,
120690120691
Jonathan Worent,

0 commit comments

Comments
 (0)