nested SGML comments

Hi,

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title></title>
<p><!-- <!-- --> </p> <div> --></p>

validates (so i think SGML allows nesting of comments)

Tidy makes the following out of this:

[...]
line 3 column 11 - Warning: adjacent hyphens within comment
line 3 column 32 - Warning: replacing element </p> by <br>
line 3 column 32 - Warning: inserting implicit <br>
line 3 column 36 - Warning: missing </div>

0.html: Doctype given is "-//W3C//DTD HTML 4.0 Transitional//EN"
0.html: Document content looks like HTML 4.01 Transitional
4 warnings/errors were found!

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title></title>
</head>
<body>
<p><!-- <!== --></p>

<div>--&gt;<br>
<br>
</div>
</body>
</html>
[...]

This does not match the parse tree of an SGML parser.

regards,
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
 --- "If you can dream it, you can do it" [tm] - Adobe Systems Inc. ---

Received on Friday, 17 November 2000 09:49:14 UTC