← Back to release summary

Remove quirks mode behavior for option label attribute

Category
DOM
Type
No developer-visible change
Status
Enabled by default (Chrome 118)
Intent stage
Prepare to ship

Summary

Option elements support a "label" attribute which will cause the option to render with the text inside the attribute rather than the child text of the option element itself. This functionality is disabled in quirks mode, where the label attribute is ignored and the child text is always rendered. This change will always use the label attribute in both standards mode and quirks mode.

Standards & signals

View on chromestatus.com