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
15 changes: 15 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -129408,6 +129408,9 @@ 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>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved

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

Expand All @@ -129425,6 +129428,18 @@ document.body.appendChild(text);
error</span>.</p></li>
</ol>

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

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 that node
from the <span>stack of open elements</span>.</p></li>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved
</ol>
josepharhar marked this conversation as resolved.
Show resolved Hide resolved

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

Expand Down