Skip to content

[selectors-4] language tag note nits #13647

Closed

Description

@aphillips

7.2. The Language Pseudo-class: :lang()
https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-lang-pseudo

Note: It is recommended that documents and protocols indicate language using codes from [BCP47] or its successor, and in the case of XML-based formats, by means of xml:lang attributes. [XML10] See “FAQ: Two-letter or three-letter language codes.”

The BCP number obviates the need for "or its successor" (its the point of using the BCP number)

The word "codes" should always be replaced with "language tags". BCP47 grokketh not "codes", only "tags" and "subtags". (The underlying ISO standards have "codes").

The link to the FAQ is really going the wrong place. You should probably link to our article on choosing language tags (https://www.w3.org/International/questions/qa-choosing-language-tags) instead.

Activity

  1. added
    i18n-needs-resolutionIssue the Internationalization Group has raised and looks for a response on.
    on Mar 12, 2026
  2. svgeesus commented on Mar 12, 2026

    @svgeesus
    Collaborator

    Agreed, that is the point of a BCP. I suspect the current text originally referenced an RFC (so successor would have been correct) and this was not adjusted when BCP47 was edited in

  3. svgeesus commented on Mar 24, 2026

    @svgeesus
    Collaborator

    @aphillips please see 656f665

  4. aphillips commented on Mar 24, 2026

    @aphillips
    ContributorAuthor
  5. added
    Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.
    and removed on Mar 24, 2026
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

    Closed Accepted as Obvious BugfixFixed an obvious error with the obvious solution.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.i18n-needs-resolutionIssue the Internationalization Group has raised and looks for a response on.selectors-4Current Work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions