W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [WA1] XML Namespaces

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 19 Jul 2005 12:12:00 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0507191211050.1857@dhalsim.dreamhost.com>
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

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