Skip to content

Remove categories of select/optgroup/option element inner content elements#12568

Open
dbaron wants to merge 1 commit into
whatwg:mainfrom
dbaron:content-model-cleanup-part2
Open

Remove categories of select/optgroup/option element inner content elements#12568
dbaron wants to merge 1 commit into
whatwg:mainfrom
dbaron:content-model-cleanup-part2

Conversation

@dbaron

@dbaron dbaron commented Jun 11, 2026

Copy link
Copy Markdown
Member

This removes the categories:

  • select element inner content elements
  • optgroup element inner content elements
  • option element inner content elements in order to simplify the specification a bit.

It does so by making the div content model rules that use these concepts instead use the transparent content model concept, which works for these cases and is perhaps also more clear.

This is a followup to #12504 and also has the goal of simplifying the content model changes we will need in #12011. (I think #12011 may also need the concept of limiting this transparency to certain close descendants but not all descendants, but I don't think that concept is needed for the select content models.)

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Not relevant since this is intended not to change implementation requirements
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

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

(Sorry, I wrote this last week right after landing #12504, but I forgot to actually create the PR!)


/dom.html ( diff )
/form-elements.html ( diff )
/grouping-content.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/scripting.html ( diff )

…ments.

This removes the categories:
* select element inner content elements
* optgroup element inner content elements
* option element inner content elements
in order to simplify the specification a bit.

It does so by making the div content model rules that use these concepts
instead use the transparent content model concept, which works for these
cases and is perhaps also more clear.

This is a followup to whatwg#12504 and also has the goal of simplifying the
content model changes we will need in whatwg#12011.  (I think whatwg#12011 may also
need the concept of limiting this transparency to certain close
descendants but not all descendants, but I don't think that concept is
needed for the select content models.)
Comment thread source
<dd><span><code>option</code> element inner content elements</span>.</dd>
<dt><span data-x="concept-element-contexts">Contexts in which this element can be used</span>:</dt>
<dd>Where <span>flow content</span> is expected.</dd>
<dd>As a child of a <code>dl</code> element.</dd>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add the following:

As a descendant of an option element, an optgroup element or select element

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.

2 participants