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

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 UTC