Update content model for customizable select

Closed
JO
1y ago
+274-55

This PR updates the content model for the <select>, <option>, and <optgroup> elements in support of customizable <select>.

The major additions are:

  • <select> and <optgroup> can contain <div> elements.
  • <option> elements can contain <div> and non-interactive phrasing content.
  • <optgroup> can have a child <legend> to represent its label.

Fixes https://github.com/whatwg/html/issues/10317

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


/dom.html ( diff )
/form-elements.html ( diff )
/grouping-content.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/rendering.html ( diff )
/scripting.html ( diff )
/text-level-semantics.html ( diff )