[css-text] Reference to HTTP Content-Language header for language declaration #5031
Labels
Closed Accepted as Editorial
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-text-3
Current Work
i18n-needs-resolution
Issue the Internationalization Group has raised and looks for a response on.
Testing Unnecessary
Memory aid - issue doesn't require tests
Tracked in DoC
Uh oh!
There was an error while loading. Please reload this page.
1.3. Languages and Typesetting
https://drafts.csswg.org/css-text-3/#content-language
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)
The text was updated successfully, but these errors were encountered: