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

Re: why is Tidy changing my 4.0 code into 3.2?

From: Terry Teague <terry_teague@users.sourceforge.net>
Date: Tue, 18 Jun 2002 23:49:56 -0700
Message-Id: <l03130300b935d89ae676@[]>
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:
>   "http://www.w3.org/TR/REC-html40/strict.dtd">
> <TITLE>Testing 123</TITLE>
> <META NAME="generator" CONTENT="BBEdit 5.0">
>blah blah blah

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:


       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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC