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

Re: XHTML1.1 DTD errata or Validator bug?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 04 May 2003 00:46:56 +0200
To: "Jonathan Stanley" <jon@lambcutlet.org>
Cc: <www-validator@w3.org>
Message-ID: <3eb73d02.78775713@smtp.bjoern.hoehrmann.de>

* Jonathan Stanley wrote:
>As I understand from HTML4 and XHTML1 Strict, the "id" attribute is global,
>and can be applied to any element, and indeed, reading through said DTDs and
>valdating a test case page where there was an "id=foo" inside the <html>
>element, the said page would pass when validated as HTML4 or XHTML1.

HTML 4.01 does not allow <html> to have an id attribute, neither do
XHTML 1.0 First Edition or XHTML Modularization (the latter allows at
most dir, lang, xmlns, xml:lang and version). XHTML 1.1 is based on
XHTML Modularization and thus disallows <html id='...' ...> XHTML 1.0
*Second Edition* had been changed in this respect and allows the html
element to have an id attribute. Take a look at the html element in

http://lists.w3.org/Archives/Public/www-archive/2003Mar/att-0105/table.html
Received on Sunday, 4 May 2003 08:13:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:34 UTC