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 (whatwg#6399).

For the case:

<table><math><p>foo

the <p> token would not have foster parenting enabled, thus inserting it into the table.

Fixes whatwg#6439.
  • Loading branch information
zcorpan authored and mfreed7 committed Jun 3, 2022
1 parent 665f896 commit 188b759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -113759,8 +113759,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 188b759

Please sign in to comment.