Re: Bug in as_HTML() ??
Gisle Aas (aas@bergen.sn.no)
17 Apr 1997 17:03:12 +0200
Joe McDonald <joe@vpop.net> writes:
> If I grab Netscape's home page and spit it out via:
>
> $h = parse_html($res->content);
> print $h->as_HTML();
>
> It fails to include the javascript and messes up the body tag. Is this a
> bug, or am I missing something (I'm probably missing something). I am
> using ver 5.05 on "perl 5.003 with EMBED"
I guess you will find that the javascript source is within HTML
comments. HTML comments are discarded by the parser. It should
probably be made to ignore comments inside <SCRIPT> and <STYLE>. This
is a mess!
--
Gisle Aas <aas@sn.no>