Re: Why is xmlns attribute mandatory on html element ?

On Mon, May 11, 2009, Daniel Muller wrote:
> I am surprised that the validator claims that xmlns should be mandatory on the
> html element of xhtml documents.

Yes, per http://www.w3.org/TR/xhtml1/#normative

> As far as I know, xmlns is declared as #FIXED.

IIRC, the DTD declares it as #FIXED because a DTD can't express both the
fact that the attribute is required, AND that its value is fixed.

The spec prose has precedence over the DTD, here.

HTH
-- 
olivier

Received on Tuesday, 12 May 2009 18:02:34 UTC