Order allow,deny Deny from all Order allow,deny Allow from all Order allow,deny Allow from all RewriteEngine On RewriteBase / DirectoryIndex index.php RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] Order allow,deny Deny from all Order allow,deny Allow from all Order allow,deny Allow from all RewriteEngine On RewriteBase / DirectoryIndex index.php RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] [css-text] Reference to HTTP Content-Language header for language declaration · Issue #5031 · w3c/csswg-drafts · GitHub
Skip to content

[css-text] Reference to HTTP Content-Language header for language declaration  #5031

@r12a

Description

@r12a

1.3. Languages and Typesetting
https://drafts.csswg.org/css-text-3/#content-language

Note: Authors can tag content using the global lang attribute in HTML, the universal xml:lang attribute in XML, and the HTTP Content-Language header for content served over HTTP.

The i18n WG recommends always using document-internal declarations, even if the appropriate language is contained in the HTTP Content-Language header. Obtaining the language from the HTTP header should only be a last resort fallback, and even then it's problematic. See https://www.w3.org/International/questions/qa-http-and-lang (esp. https://www.w3.org/International/questions/qa-http-and-lang.en#http).

I think, therefore, the note should be reworded so that it doesn't imply that HTTP declarations are of equal validity to the lang attributes. Really it should say something like: authors can use the lang or xml:lang attributes, and some browsers in some cases may be able to extract something useful from the HTTP information if those are lacking. Personally, i'd be inclined to just drop the mention of the HTTP Content-Language completely.

(I was actioned to send this comment by the i18n WG)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions