Testing labeling option elements

Published: August 6, 2019

option element.

select with child options


The label attribute should provide user visible text for an option, specifically if following the first line of the HTML Living Standard's Content Model for the element:

If the element has a label attribute and a value attribute: Nothing

e.g., there is no expected subtree content for the option element because the value and label are provided by the element's attributes.

However, a visible text label fails to load with:

  • Firefox 68.0.1 on macOS and Windows
  • iOS Safari 12.3.1

Testing with IE11, Edge (pre and post chromium), Chrome (mac, Android and PC), Firefox Android, and Safari on macOS, all options render with a visible label.