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

* Terry Teague wrote:
>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 :

However, Tidy should resort to HTML 4.01 Transitional, not to HTML 3.2.

Received on Sunday, 13 October 2002 23:20:18 UTC