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.
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.
There are no other platform APIs that this change will be used in tandem with.
This will not be challenging for developers to take advantage of.
There are no security risks/considerations for this feature.
This change does not have particularly high risk to WebView.
No DevTools changes are needed for this change.
111
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).
Contact emails
jar...@chromium.org
Specification
https://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 component
Blink>Forms>Select
TAG review
None
TAG review status
Not 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.
--
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+...@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.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK6btw%2BNO8ShF8nV1s1GDaryEpGGG%2B3M%2Bgw6qT%2Bxsfq%3DTwiG_w%40mail.gmail.com.
Sounds good, I'm adding a UseCounter here: https://chromium-review.googlesource.com/c/chromium/src/+/4193560On Tue, Jan 24, 2023 at 8:05 AM Rick Byers <rby...@chromium.org> wrote:Hey Joey,Thanks for working to remove a quirk! Although we haven't written it into our compat principles, I'm personally willing to accept greater compat risk for removing quirks as they're by-definition legacy behavior of the web which create an ongoing complexity burden for the platform which we should seek to eventually eliminate.Reading through the history of WebKit not being able to make this change due to severe breakage in bugzilla and seeing that we still load 12% of pages in quirks mode,
--
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+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY8ZizCwMOX_r8dKbJ44xNkih7J4Tx7z31DNnPOrmLRH%2Bw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Friendly ping! :)
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.