Skip to content

Conversation

josepharhar
Copy link
Contributor

@josepharhar josepharhar commented Oct 7, 2025

This PR moves the steps to clone an option element into a selectedcontent element from the parsing of an option end tag to a paragraph which specifies that this should happen any time an option is popped off the stack of open elements, which will make the algorithm run even if the author didn't explicitly write a closing option tag.

This was found here: #11653

(See WHATWG Working Mode: Changes for more details.)


/form-elements.html ( diff )
/parsing.html ( diff )

This PR moves the steps to clone an option element into a
selectedcontent element from the parsing of an option end tag to a
paragraph which specifies that this should happen any time an option is
popped off the stack of open elements, which will make the algorithm run
even if the author didn't explicitly write a closing option tag.

This was found here: whatwg#11653
<div algorithm>
<p>When an <code>option</code> element is popped off the <span>stack of open elements</span> of an
<span>HTML parser</span> or <span>XML parser</span>, the user agent must run <span>maybe clone an
option into selectedcontent</span> given the <code>option</code>.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
option into selectedcontent</span> given the <code>option</code>.</p>
option into selectedcontent</span> given the <code>option</code> element.</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants