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

r12a has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] Reference to HTTP Content-Language header for language declaration  ==
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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5031 using your GitHub account

Received on Thursday, 30 April 2020 15:38:24 UTC