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

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

From: Jirka Kosek <jirka@kosek.cz>
Date: Tue, 31 Jul 2007 11:11:26 +0200
Message-ID: <46AEFCBE.1060908@kosek.cz>
To: Anne van Kesteren <annevk@opera.com>
CC: Karl Dubost <karl@w3.org>, Ben Boyle <benjamins.boyle@gmail.com>, HTML WG <public-html@w3.org>
Anne van Kesteren wrote:

> 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">

From XML point of view there is no language specified.

>     <div>A
>       <div lang="bar" xml:lang="baz">
>          <div>B
> 
> 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.

May be evil idea, but since during DOM construction all elements are put
into XHTML namespace what about moving lang -> xml:lang (if there is no
xml:lang already) for HTML serialization and forbidding lang in XML
serialization?

Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------


Received on Tuesday, 31 July 2007 09:10:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:03 GMT