Skip to content

Commit

Permalink
Correct two "fragment case" annotations
Browse files Browse the repository at this point in the history
They can both occur even in regular (non-fragment) parsing,
e.g. when parsing `<template><body>` and `<template><frameset>`.
  • Loading branch information
not-my-profile authored Nov 16, 2023
1 parent e60fc35 commit 0c7c233
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -125601,7 +125601,7 @@ document.body.appendChild(text);
<p>If the <span>stack of open elements</span> has only one node on it, if the second element
on the <span>stack of open elements</span> is not a <code>body</code> element, or if there is a
<code>template</code> element on the <span>stack of open elements</span>, then ignore the token.
(<span>fragment case</span>)</p>
(<span>fragment case</span> or there is a <code>template</code> element on the stack)</p>

<p>Otherwise, set the <span>frameset-ok flag</span> to "not ok"; then, for each attribute on the
token, check to see if the attribute is already present on the <code>body</code> element (the
Expand All @@ -125615,7 +125615,8 @@ document.body.appendChild(text);

<p>If the <span>stack of open elements</span> has only one node on it, or if the second element
on the <span>stack of open elements</span> is not a <code>body</code> element, then ignore the
token. (<span>fragment case</span>)</p>
token. (<span>fragment case</span> or there is a <code>template</code> element on the
stack)</p>

<p>If the <span>frameset-ok flag</span> is set to "not ok", ignore the token.</p>

Expand Down

0 comments on commit 0c7c233

Please sign in to comment.