@@ -35397,10 +35397,10 @@ function receiver(e) {
35397
35397
35398
35398
<p>An <dfn title="syntax-ambiguous-ampersand">ambiguous
35399
35399
ampersand</dfn> is a U+0026 AMPERSAND (<code>&</code>) character
35400
- that is not the last character in the file, that is not followed by
35401
- a <span>space character</span>, that is not followed by a start tag
35402
- that has not been omitted, and that is not followed by another
35403
- U+0026 AMPERSAND (<code>&</code>) character.</p>
35400
+ that is followed by some <span title="syntax-text">text</span> other
35401
+ than a <span>space character</span>, a U+003C LESS-THAN SIGN
35402
+ character ('<'), or another U+0026 AMPERSAND (<code>&</code>)
35403
+ character.</p>
35404
35404
35405
35405
35406
35406
<h4>Comments</h4>
@@ -36286,7 +36286,8 @@ function receiver(e) {
36286
36286
<p><em>(This cannot happen if the <span>content model flag</span>
36287
36287
is set to the CDATA state.)</em></p>
36288
36288
36289
- <p>Attempt to <span>consume an entity</span>.</p>
36289
+ <p>Attempt to <span>consume an entity</span>, with no
36290
+ <span>additional allowed character</span>.</p>
36290
36291
36291
36292
<p>If nothing is returned, emit a U+0026 AMPERSAND character
36292
36293
token.</p>
@@ -36691,7 +36692,9 @@ function receiver(e) {
36691
36692
<dd>Switch to the <span>before attribute name state</span>.</dd>
36692
36693
36693
36694
<dt>U+0026 AMPERSAND (&)</dt>
36694
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
36695
+ <dd>Switch to the <span>entity in attribute value state</span>,
36696
+ with the <span>additional allowed character</span> being U+0022
36697
+ QUOTATION MARK (").</dd>
36695
36698
36696
36699
<dt>EOF</dt>
36697
36700
<dd><span>Parse error</span>. Emit the current tag
@@ -36719,7 +36722,9 @@ function receiver(e) {
36719
36722
<dd>Switch to the <span>before attribute name state</span>.</dd>
36720
36723
36721
36724
<dt>U+0026 AMPERSAND (&)</dt>
36722
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
36725
+ <dd>Switch to the <span>entity in attribute value state</span>,
36726
+ with the <span>additional allowed character</span> being U+0027
36727
+ APOSTROPHE (').</dd>
36723
36728
36724
36729
<dt>EOF</dt>
36725
36730
<dd><span>Parse error</span>. Emit the current tag
@@ -36752,7 +36757,8 @@ function receiver(e) {
36752
36757
<dd>Switch to the <span>before attribute name state</span>.</dd>
36753
36758
36754
36759
<dt>U+0026 AMPERSAND (&)</dt>
36755
- <dd>Switch to the <span>entity in attribute value state</span>.</dd>
36760
+ <dd>Switch to the <span>entity in attribute value state</span>,
36761
+ with no <span>additional allowed character</span>.</dd>
36756
36762
36757
36763
<dt>U+003E GREATER-THAN SIGN (>)</dt>
36758
36764
<dd>Emit the current tag token. Switch to the <span>data
@@ -37453,6 +37459,7 @@ function receiver(e) {
37453
37459
<dt>U+003C LESS-THAN SIGN</dt>
37454
37460
<dt>U+0026 AMPERSAND</dt>
37455
37461
<dt>EOF</dt>
37462
+ <dt>The <dfn>additional allowed character</dfn>, if there is one</dt>
37456
37463
37457
37464
<dd>Not an entity. No characters are consumed, and nothing is
37458
37465
returned. (This is not an error, either.)</dd>
0 commit comments