Contact emailsjar...@chromium.org

Specificationhttps://github.com/whatwg/html/issues/2988

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.


Blink componentBlink>Forms>Select
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EForms%3ESelect>

TAG reviewNone

TAG review statusNot applicable

Risks


Interoperability and Compatibility

If websites rely on this quirks mode behavior despite firefox already
shipping this behavior for years, then select elements won't render with
the expected text. If too many websites are broken, I will disable this
change via finch and try to change the HTML spec to align with chrome.


*Gecko*: Shipped/Shipping (
https://wpt.fyi/results/html/rendering/widgets/the-select-element/option-add-label-quirks.html
)

*WebKit*: No signal

*Web developers*: No signals

*Other signals*:

Ergonomics

There are no other platform APIs that this change will be used in tandem
with.


Activation

This will not be challenging for developers to take advantage of.


Security

There are no security risks/considerations for this feature.


WebView application risks

This change does not have particularly high risk to WebView.



Debuggability

No DevTools changes are needed for this change.


Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

Flag name--enable-features=OptionElementAlwaysUseLabel

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1403735

Estimated milestones

111


Anticipated spec changes

Open questions about a feature may be a source of future web compat or
interop issues. Please list open issues (e.g. links to known github issues
in the project for the feature specification) whose resolution may
introduce web compat/interop risk (e.g., changing to naming or structure of
the API in a non-backward-compatible way).


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6084027289698304

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btwLed%2BEECiebAa0bgXfLGVXNMMucLG%2B4667VnpJzeXXa8A%40mail.gmail.com.

Reply via email to