Skip to content

should default reset/submit button text and default summary text use node's language rather than being locale-specific? #10437

Open

Description

@dbaron

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 #10265 (comment) 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.

Activity

  1. added
    i18n-tracker
    on Jun 26, 2024
  2. added
    topic: forms
    on Jun 27, 2024
  3. annevk commented on Jun 27, 2024

    @annevk
    Member

    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.

  4. aphillips commented on Jul 4, 2024

    @aphillips
    Contributor

    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="")?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-trackertopic: forms

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions