Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax <select> parser #10557

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
14 changes: 4 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -129413,8 +129413,6 @@ document.body.appendChild(text);
<ol>
<li><p>If the <span>current node</span> is an <code>option</code> element, then pop the
<span>current node</span> off the <span>stack of open elements</span>.</p></li>

<li><p><span>Reconstruct the active formatting elements</span>, if any.</p></li>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
</ol>

<p><span>Insert an HTML element</span> for the token.</p>
Expand All @@ -129437,15 +129435,11 @@ document.body.appendChild(text);
<p>Otherwise:</p>

<ol>
<li><p>If the <span>current node</span> is an <code>option</code> element, and the node
immediately before it in the <span>stack of open elements</span> is an <code>optgroup</code>
element, then pop the <span>current node</span> from the <span>stack of open
elements</span>.</p></li>

<li><p>If the <span>current node</span> is an <code>optgroup</code> element, then pop that node
from the <span>stack of open elements</span>.</p></li>
<li><p>If the <span>current node</span> is an <code>option</code> element, then pop the
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
<span>current node</span> from the <span>stack of open elements</span>.</p></li>

<li><p><span>Reconstruct the active formatting elements</span>, if any.</p></li>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
<li><p>If the <span>current node</span> is an <code>optgroup</code> element, then pop the
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
<span>current node</span> from the <span>stack of open elements</span>.</p></li>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
</ol>

<p><span>Insert an HTML element</span> for the token.</p>
Expand Down