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

Re: wrong DOCTYPE?

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Sun, 21 May 2000 13:28:12 +0200
Message-ID: <000501bfc317$aaff85c0$ede02ed5@chello.se>
To: <html-tidy@w3.org>
I wrote:

> But this one is Transitional, according to Tidy (but it does not
> change the DOCTYPE in the output):
> [...]

Actually Tidy does change my doctype if I set "doctype: auto" in
the config file. But the error of seeing the use of "div" as
transitional remains.

Furthermore "doctype: strict" is really weird. If I set this option,
Tidy sees that the following is Transitional, because of the
use of a center element, but it does not correct the mistake, nor
does it give any warning:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test</title>
</head>
<body>

<center>
Hi, Tidy! What am I?
</center>

</body>
</html>

Thus because of an option that would seem to enforce a strict
regime and extra pedantic behaviour, Tidy is actually made to
output bad XHTML!

The option "clean: no" is also necessary for this to happen.
Perhaps the combination of "doctype: strict" and "clean: no"
ties Tidy's hands, but at least it should issue a warning that
the output is not correct XHTML. Instead I get "no warnings or 
errors were found".

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################
Received on Sunday, 21 May 2000 07:24:37 GMT

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