W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

nested SGML comments

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 17 Nov 2000 15:45:48 +0100
Message-ID: <005901c050a5$b88dcaa0$0dccb43e@de>
To: "Html-Tidy" <html-tidy@w3.org>
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 GMT

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