demo · v134

Select Parser Relaxation

The HTML parser now allows wrapping <div>, <span>, <img> and similar elements inside <select> — the substrate the Customizable <select> feature builds on. Pre-134 the parser silently stripped them and your option groups collapsed. Edit the markup; the live tree shows what actually parsed.

probing parser leniency for <select>...

Try it

parsed tree


      

live render

The code

<select>
  <div class="group">
    <span class="label">Fruit</span>
    <option>apple</option>
  </div>
</select>
<!-- v134: HTML parser keeps the wrapping div + span.
     Pre-134: silently dropped, options collapsed. -->

see also