Re: possible bug in HTML::Parser comment handler

Bjoern Hoehrmann (derhoermi@gmx.net)
Thu, 11 Jan 2001 23:21:22 +0100


At 15:28 11.01.01 -0500, you wrote:
>It seems that the parser is not properly detecting multi-line HTML
>comments.  I was trying to print out the dtext of a html document and
>noticed that comments kept showing up in the output.  Upon further
>examination, the single line comments were being ignored but ones like
>this:
>
><!--
>td {font-family: Arial,Geneva,Helvetica,sans-serif; color: #000000;}
>-->

Well, the content model of the style element is CDATA, your "comments"
may look like comments but they are no comments in HTML and SGML
terms. That's not a bug.
-- 
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://www.websitedev.de/