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.

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

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:34 UTC