html
html copied to clipboard
should default reset/submit button text and default summary text use node's language rather than being locale-specific?
What is the issue with the HTML Standard?
Previously the HTML specification's wording for what language to use for the presentation of dates, times, and numbers, was changed (or maybe was always?) to refer to the node's language rather than to use the browser or system locale. However, the language used for the default text of <input type=submit> and <input type=reset> buttons and (now, also, as of #10265) for the text in the default summary of a <details> (when no <summary> is present) says to use implementation defined behavior that is probably locale-specific (which I presume means matching the browser or system locale).
@annevk suggested in https://github.com/whatwg/html/pull/10265#discussion_r1566017076 that this follow the node's language to match the date/time/number rules.
It does seem to me that rules for words have some substantive differences from those for dates/times/numbers so it's not obvious to me that they should be the same. But it's also worth considering what the right thing is here.
One advantage of doing this is that websites designed for a single locale were likely created by web developers using the same locale and thus might not anticipate other dimensions for the buttons and such.
In I18N's 2024-07-04 call, we talked about this issue. In general, we think that page author's would like to be able to control the appearance and localization of their pages. Having default controls such as submit, reset, etc. be localized (to the extent of the browser's capability) according to the lang of the node makes sense to use. The page author might be able to get default user-agent locale behavior by neutralizing the language (lang="")?