- From: Terry Teague <terry_teague@users.sourceforge.net>
- Date: Tue, 18 Jun 2002 23:49:56 -0700
- To: malcolm@pateman.fsbusiness.co.uk, html-tidy@w3.org
At 12:05 PM -0400 6/18/02, Malcolm Pateman wrote: >I have a simple question re. Tidy (I'm using the Mac BBEdit plugin) ... > >my code is HTML 4.0, but Tidy makes it into 3.2. Can someone help me? > >Here is an example: > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" > "http://www.w3.org/TR/REC-html40/strict.dtd"> ><HTML> ><HEAD> > <TITLE>Testing 123</TITLE> > <META NAME="generator" CONTENT="BBEdit 5.0"> ></HEAD> ><BODY> >blah blah blah ></BODY> ></HTML> I reproduced your issue with the current (18 Jun 02) version of Tidy, but I also checked the above sample with a Validator, and sorry but it does NOT validate as 4.0 Strict, so Tidy changes the DOCTYPE to match the content : ----- Line 9, column 0: blah blah blah ^ Error: text is not allowed here; try wrapping the text in a more descriptive container Line 10, column 6: </BODY> ^ Error: missing a required sub-element of "BODY" Sorry, this document does not validate as HTML 4.0 Strict. ----- If you have sample HTML that validates as 4.0, and Tidy is changing the DOCTYPE to 3.2, then let us know. There have been a number of DOCTYPE related bugs that have been fixed since the last official release of Tidy on 04 Aug 00 (and BBTidy). Regards, Terry
Received on Wednesday, 19 June 2002 02:51:28 UTC