W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2002

Treatment of doctype

From: Pierre HANSER <Pierre.Hanser@sxb.bsf.alcatel.fr>
Date: Mon, 08 Apr 2002 09:19:19 +0200
Message-ID: <3CB14477.AB544D2F@sxb.bsf.alcatel.fr>
To: Tidy list <html-tidy@w3.org>
hello

I've a small problem with the warning tidy gives on improper doctypes:

my document begins with:

   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

the warning from tidy is:

   HTML Tidy for Solaris (vers 1st April 2002 (no joke); built on Apr  8
2002, at 09:07:35)
   Parsing "TOOLS/index.html"
   line 1 column 1 - Warning: HTML DOCTYPE doesn't match content

   TOOLS/index.html: Doctype given is "-//W3C//DTD HTML 4.01
Transitional//EN"
   TOOLS/index.html: Document content looks like HTML 4.01 Transitional
   1 warning, 0 errors were found!

It seems to me that the first line should be talking about 3.2!

Is this for real or is it a misunderstanding of mine?

Thanks for any comment

-- 
	Pierre Hanser
Received on Monday, 8 April 2002 03:19:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:52 GMT