Skip to content

Commit

Permalink
HTML parser: fix a regression with foster parenting in foreign content
Browse files Browse the repository at this point in the history
The regression was introduced in f690ad9
(PR #6399)

For this case:
```
<table><math><p>foo
```
the `<p>` token would not have foster parenting enabled, thus inserting it
into the table.

Fixes #6439.
  • Loading branch information
zcorpan committed Mar 5, 2021
1 parent 1398653 commit 7266fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Expand Up @@ -111065,8 +111065,8 @@ document.body.appendChild(text);
<span>HTML integration point</span>, or an element in the <span>HTML namespace</span>, pop
elements from the <span>stack of open elements</span>.</p>

<p>Process the token <span>using the rules for</span> the "<span data-x="insertion mode:
in body">in body</span>" <span>insertion mode</span>.</p>
<p>Reprocess the token according to the rules given in the section corresponding to the current
<span>insertion mode</span> in HTML content.</p>
</dd>

<dt>Any other start tag</dt>
Expand Down

0 comments on commit 7266fd0

Please sign in to comment.