Skip to content

Commit ab63afc

Browse files
Remove unreachable fragment case in "in cell" insertion mode
Fixes #7242.
1 parent 0c7c233 commit ab63afc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127427,11 +127427,13 @@ document.body.appendChild(text);
127427127427
<dt>A start tag whose tag name is one of: "caption", "col",
127428127428
"colgroup", "tbody", "td", "tfoot", "th", "thead", "tr"</dt>
127429127429
<dd>
127430-
<p>If the <span>stack of open elements</span> does <em>not</em> <span data-x="has an element in
127431-
table scope">have a <code>td</code> or <code>th</code> element in table scope</span>, then this
127432-
is a <span>parse error</span>; ignore the token. (<span>fragment case</span>)</p>
127430+
<p><span>Assert</span>: The <span>stack of open elements</span> <span data-x="has an element in
127431+
table scope">has a <code>td</code> or <code>th</code> element in table scope</span>.</p>
127432+
<!-- Because "in row" only switches to "in cell" if a td or th element is on the stack
127433+
and the rules for resetting the insertion mode only yield "in cell" if last is false
127434+
(i.e. not if node is the fragment context). -->
127433127435

127434-
<p>Otherwise, <span>close the cell</span> (see below) and reprocess the token.</p>
127436+
<p><span>Close the cell</span> (see below) and reprocess the token.</p>
127435127437
</dd>
127436127438

127437127439
<dt>An end tag whose tag name is one of: "body", "caption",

0 commit comments

Comments
 (0)