Re: Bugreport on comments
Randal Schwartz (merlyn@stonehenge.com)
04 Dec 1997 07:18:24 -0700
>>>>> "hellmuth" == hellmuth <hellmuth@ira.uka.de> writes:
hellmuth> I stumbled on the following bug in Parser.pm ( at least up
hellmuth> to libwww-5.16 which is current AFAIK). Comments with -- in
hellmuth> the comment-text are not parsed correctly because --
hellmuth> (without the ending '>') is parsed as end-of-comment.
Not a bug. See HTML/Parser.pm.
=head1 BUGS
You can instruct the parser to parse comments the way Netscape does it
by calling the netscape_buggy_comment() method with a TRUE argument.
This means that comments will always be terminated by the first
occurence of "-->".
And there's a discussion that happened here of having
netscape_buggy_comment default to true (ugh!) just to be less
confusing to the SGML-challenged users of LWP.
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me