W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: 3.6. The root element

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 30 Jul 2007 22:56:37 +1000
Message-ID: <46ADE005.80206@lachy.id.au>
To: Ben Boyle <benjamins.boyle@gmail.com>
CC: HTML WG <public-html@w3.org>

Ben Boyle wrote:
> http://dev.w3.org/html5/spec/Overview.html#the-root
> 
> This seems fine to me.
> 
> Unsure about the second note: doesn't xmlns="" put an element into the
> "null" namespace in XML?

Yes, but that's not what the note means.  It says:

   In XML, an xmlns attribute is part of the namespace declaration
   mechanism, and an element cannot actually have an xmlns attribute
   in the null namespace specified.

It's referring to the namespace of the attribute itself, not the 
namespace of the elemement.  In DOM implementations, the xmlns attribute 
is in the http://www.w3.org/2000/xmlns/ namespace.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Monday, 30 July 2007 12:57:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:47 UTC