W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2006

[whatwg] lang vs. xml:lang; id vs. xml:id

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 1 Dec 2006 16:40:52 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0612011639370.4460@dhalsim.dreamhost.com>
On Fri, 1 Dec 2006, Michel Fortin wrote:
> While the requirement for authors is pretty clear (HTML: lang; XHTML: 
> xml:lang), it seems to me that the user agent is asked to always favour 
> xml:lang even in an HTML context. Is this really what's intended? I 
> think this ought to be clarified.

It's intended, because the idea is to let UAs have just one 
implementation. Note that "xml:lang" is a namespaced attribute, you can't 
specify it in HTML without using scripting. (<html xml:lang=""> doesn't 
create a node with a namespaced attribute.)

> > The id DOM attribute must reflect the id content attribute.
> Does that mean it should not reflect xml:id even when id is not defined?

Correct. The xml:id spec doesn't have a DOM binding. That is unrelated to 

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 1 December 2006 08:40:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC