[whatwg] [WA1] XML Namespaces

On Tue, 19 Jul 2005, Christian Biesinger wrote:
>
> http://whatwg.org/specs/web-apps/current-work/#the-dom says: "To ease 
> migration from HTML to XHTML, UAs must assign the 
> http://www.w3.org/1999/xhtml namespace to elements in that are parsed in 
> documents labelled as text/html, at least for the purposes of the DOM 
> and CSS."
> 
> This does not seem to be what currently happens. Neither Mozilla nor 
> Opera (checked in 7.54) do that, document.body.namespaceURI returns null 
> for HTML documents. (MSIE does not seem to support that attribute)

Correct. But it is what is intended. The idea is to reduce the differences 
between XHTML and HTML to ease the transition. (One of the biggest 
problems at the moment is that you need two separate scripts.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 19 July 2005 05:12:00 UTC