Re: 3.6. The root element

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