W3C home > Mailing lists > Public > public-html@w3.org > August 2008

Re: meta content-language

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 22 Aug 2008 09:06:53 +0200
Message-ID: <48AE658D.7050805@gmx.de>
To: Leif Halvard Silli <lhs@malform.no>
CC: Ian Hickson <ian@hixie.ch>, 'HTML WG' <public-html@w3.org>, "www-international@w3.org" <www-international@w3.org>

Leif Halvard Silli wrote:
> 
> Ian Hickson 2008-08-21 03.36:
>    [...]
> 
>>> Also, the Content language selection algorithm in 4.2.5.3 makes no 
>>> mention of <html lang=.. as a way of identifying the default 
>>> language, which it actually does if it is present, since it has 
>>> higher priority than HTTP metadata.
>>
>> <html lang=""> only sets the language for the content of the <html> 
>> element, it doesn't set the language for, e.g., comment nodes outside 
>> the <html> element. See the definition of lang="" in HTML5 for details. 
> 
>     
> So, is the idea is that if we have this code:
> 
> <!-- This is English, actually! -->
> <DOCTYPE html>
> <meta http-equiv="Content-Language" content="ru">
> 
> Then the META element declares that the comment is in Russian?

It's called "http-equiv" for a reason. Using it is equivalent to having 
"Content-Language: ru" in the HTTP response, thus it applies to the 
whole document.

BR, Julian
Received on Friday, 22 August 2008 07:07:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:57 UTC