W3C home > Mailing lists > Public > www-validator@w3.org > May 2009

Re: Why is xmlns attribute mandatory on html element ?

From: Olivier Thereaux <ot@artbeat.me>
Date: Tue, 12 May 2009 20:01:52 +0200
To: Daniel Muller <Daniel.Muller@ec-lyon.fr>
Cc: www-validator@w3.org
Message-ID: <20090512180152.GB27231@zoy.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:35 GMT