Re: xmlns in HTML5 (was: Telecon Agenda- Thursday 1500 UTC)

On Thu, 16 Jul 2009 10:50:52 +0200, Toby Inkster <tai@g5n.co.uk> wrote:

> For the same reason, xmlns:foo attributes aren't allowed in HTML4
> either.

Actually, to allow for future changes, the spec says:

"If a user agent encounters an attribute it does not recognize, it should  
ignore the entire attribute specification (i.e., the attribute and its  
value)."
http://www.w3.org/TR/html401/appendix/notes.html#notes-invalid-docs

In other words, it should act as if it weren't there. So it is allowed,  
but no meaning is defined.
XHTML 1.* say something similar.

Steven

Received on Thursday, 16 July 2009 14:01:50 UTC