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, TerryReceived on Wednesday, 19 June 2002 02:51:28 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:52 GMT