W3C home > Mailing lists > Public > www-international@w3.org > July to September 2011

(unknown charset) Re: For review: 1 new and 3 updated articles about language declarations in HTML

From: (unknown charset) Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Tue, 23 Aug 2011 02:16:37 +0200
To: (unknown charset) Richard Ishida <ishida@w3.org>
Cc: (unknown charset) www International <www-international@w3.org>
Message-ID: <20110823021637045772.42cd4a31@xn--mlform-iua.no>
Richard Ishida, Thu, 18 Aug 2011 16:47:20 +0100:

> 3    Declaring language in HTML
>     This is a new article derived from information that was 
> originally in the tutorial mentioned above. The information has been 
> rewritten, and changes have been made to reflect recent developments 
> for HTML5.


   ]] If you are serving your page as XML (ie. using a MIME type such 
as application/xhtml+xml), you do not need the lang attribute. The 
xml:lang attribute alone will suffice. (The lang is allowed, but it 
won't have any effect.) [[

* The paragraph above does not match reality: @lang *does* have effect 
- at least for CSS selectors, and at least in in Firefox, Opera, 
Chrome, Webkit and IE9 - even if the page is served as XML. In fact, 
David Carlisle in the discussion field of a bug against Polyglot Markup 
questioned whether xml:lang was needed, but we did not push it.

* The advantage, thus, of using xml:lang is - I think - that it is a 
*generic* XML feature. Thus, xml:lang makes sure language declaring 
works even in the most generic XML parser. However, for the most 
advanced XML parsers, those who implement HTMl5 as well, they do 
attribute meaning to the @lang attribute.

  ]] Specifying metadata about the audience language [[

* It really would have helped if you had moved that section to another 
document - namely to that document dealing with HTTP Content-Langauge. 
It should be minimized more. And the link to the 'HTTP and meta for 
language information' article, should be moved from bottom to top of 
this section ...
Leif H Silli
Received on Tuesday, 23 August 2011 00:17:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:32 UTC