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

wrong DOCTYPE?

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Sun, 21 May 2000 12:40:31 +0200
Message-ID: <009301bfc310$fe439c00$ede02ed5@chello.se>
To: <html-tidy@w3.org>
It seems the 30th April version of Tidy still gets XHTML Doctypes
wrong - at least it always says "...appears to be XHTML 1.0 Transitional"
on my XHTML Strict documents.

Actually this seems to hinge on the use of div-elements. Here's a simple 
doc that Tidy say is XHTML strict:

<!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>

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

</body>
</html>

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

<!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>

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

</body>
</html>

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

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