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 : Tuesday, 2 June 2009 18:32:12 GMT