Skip to content

Commit e00906b

Browse files
committed
Remove parse error for <template><tr></tr> </template>
The spec would enable foster parenting for whitespace in template after seeing table-related markup and trigger a parse error. Whitespace in template should not be a parse error. This change should not affect the parsed tree structure, only the number of parse errors. Non-whitespace text will still go through foster parenting and is still a parse error. Fixes #7922.
1 parent 6a77e6d commit e00906b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114388,7 +114388,7 @@ document.body.appendChild(text);
114388114388

114389114389
<dl class="switch">
114390114390

114391-
<dt>A character token, if the <span>current node</span> is <code>table</code>, <code>tbody</code>, <code>tfoot</code>, <code>thead</code>, or <code>tr</code> element</dt> <!-- same list as foster parenting -->
114391+
<dt>A character token, if the <span>current node</span> is <code>table</code>, <code>tbody</code>, <code>template</code>, <code>tfoot</code>, <code>thead</code>, or <code>tr</code> element</dt> <!-- same list as foster parenting + template -->
114392114392
<dd>
114393114393
<p>Let the <dfn><var data-x="concept-pending-table-char-tokens">pending table character
114394114394
tokens</var></dfn> be an empty list of tokens.</p>

0 commit comments

Comments
 (0)