W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: lang and xml:lang Re: 3.4. Global attributes

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 31 Jul 2007 10:39:42 +0200
To: "Karl Dubost" <karl@w3.org>
Cc: "Ben Boyle" <benjamins.boyle@gmail.com>, "HTML WG" <public-html@w3.org>
Message-ID: <op.twbmcggg64w2qv@annevk-t60.oslo.opera.com>

On Tue, 31 Jul 2007 07:01:10 +0200, Karl Dubost <karl@w3.org> wrote:
> Le 30 juil. 2007 à 21:40, Anne van Kesteren a écrit :
>>> 3.4.3. The lang (HTML only) and xml:lang (XML only) attributes
>>> http://dev.w3.org/html5/spec/Overview.html#lang
>>> Disappointed that this explicitly requires different attributes for
>>> each serialisation (but can't offer a solution).
>> I still think it makes some sense to allow lang= in both.
> Note that the specification already handles the case where both values  
> are present.


> The xml:lang processing is given by XML specification. I do not see  
> differences so far between the requirements in HTML 5 and XML. So HTML 5  
> could just refer to this section for the processing.
>     http://www.w3.org/TR/REC-xml/#sec-lang-tag

Actually, I'm not sure XML handles cases like (what's the language of A  
and what's the language of B?):

   <div lang="foo">
       <div lang="bar" xml:lang="baz">

xml:lang precedence (even in HTML) has been a source of confusion and user  
agent bugs in the past (maybe it's still a problem in some UAs) so it  
seems better to let HTML 5 be explicit about it.

Anne van Kesteren
Received on Tuesday, 31 July 2007 08:39:47 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:24 UTC