[whatwg] Attributes, namespaces and language determination
zcorpan at hotmail.com
Mon Jan 23 13:39:13 PST 2006
Looking at how to determine the language of a node:
>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
>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.
More information about the whatwg