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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 01 Dec 2006 12:55:14 +0100
Message-ID: <op.tjvp2cti64w2qv@id-c0020.oslo.opera.com>
On Fri, 01 Dec 2006 12:52:20 +0100, Michel Fortin  
<michel.fortin at michelf.com> 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.

That's what has been implemented in user agents (makes sense too from a  
DOM pov, imho).

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

Yes. It also doesn't reflect any other attribute that theoretically could  
form the ID of the element.

Anne van Kesteren
Received on Friday, 1 December 2006 03:55:14 UTC

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