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 14 commits into
base: main
Choose a base branch
from
12 changes: 10 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -129408,8 +129408,14 @@ document.body.appendChild(text);
<code>option</code> element in scope</span>, then this is a <span>parse error</span>.</p></li>
</ol>

<p>Otherwise, 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>
<p>Otherwise:</p>

<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>
</ol>

<p><span>Insert an HTML element</span> for the token.</p>
</dd>
Expand Down Expand Up @@ -129438,6 +129444,8 @@ document.body.appendChild(text);

<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>
zcorpan marked this conversation as resolved.
Show resolved Hide resolved

<li><p><span>Reconstruct the active formatting elements</span>, if any.</p></li>
</ol>

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