W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] Attributes, namespaces and language determination

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 30 Oct 2007 09:09:55 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0710300901000.30632@hixie.dreamhostps.com>
On Mon, 23 Jan 2006, Simon Pieters wrote:
> 
> Looking at how to determine the language of a node[1]:
> 
> > To determine the language of a node, user agents must look at the nearest
> > ancestor element (including the element itself if the node is an element)
> > that has a lang or xml:lang attribute set. That specifies the language of
> > the node.
> 
> ...and terminology[2]:
> 
> > Unless otherwise stated, all elements defined or mentioned in this
> > specification are in the http://www.w3.org/1999/xhtml  namespace, and all
> > attributes defined or mentioned in this specification have no namespace
> > (they are in the per-element partition).
> 
> ...it could be interpreted that the language of the text "foo" in the
> following document is "x":
> 
>   <foo lang="x"><p xmlns="http://www.w3.org/1999/xhtml">foo</p></foo>
> 
> ...which is probably not what was intended.
> 
> [1] http://whatwg.org/specs/web-apps/current-work/#lang
> [2] http://whatwg.org/specs/web-apps/current-work/#terminology

Fixed. Thanks.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 30 October 2007 02:09:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC