Re: 3.6. The root element

On Mon, 30 Jul 2007 14:44:33 +0200, Ben Boyle <benjamins.boyle@gmail.com>  
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?

It is about the namespace the xmlns _attribute_ ends up in. Not the  
element on which it is declared.


> Not sure this note is even needed, maybe it
> should say: In XML serialisations all elements must be declared in the
> "http://www.w3.org/2000/xmlns/" namespace.

No, they should be declared in the http://www.w3.org/1999/xhtml namespace.


> May be worth making a note that inherited attributes (particularly
> @lang and @dir) can (should?) be declared on the root element.

Requiring that just leads to WYSIWYG editors putting them in some  
boilerplate making lang= even less useful than it is now. (This is already  
happening :-(.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 30 July 2007 12:53:58 UTC