Skip to content

[selectors-4] :lang example needs refinement #13644

@aphillips

Description

@aphillips

Selectors Overview
https://www.w3.org/TR/2026/WD-selectors-4-20260122/#overview

| E:lang(zh, "*-hant") | an element of type E tagged as being either in Chinese (any dialect or writing system) or otherwise written with traditional Chinese characters | § 7.2 The Language Pseudo-class: :lang() | 2/4 |

This example uses the ranges zh and *-hant. Tagging Chinese languages is more complex than most other languages. The purpose of this illustration is to show the :lang selector as an example. It would probably be better to use an example that doesn't involve this complexity.

Perhaps use a combination such as en and *-CA instead:

an element of type E tagged with a language tag for English (en) or any language tag with the region Canada (*-CA)

Metadata

Metadata

Assignees

No one assigned

    Labels

    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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions