</FONT COLOR>
Michael R Cook (michael_cook%erawan@cognex.com)
11 Apr 1997 14:57:34 -0400
Consider this HTML code:
<FONT COLOR="#FF0000">Foo!</FONT COLOR><TITLE>Bar!</TITLE>
The malformed </FONT COLOR> markup seems to thoroughly confuse HTML::Parser.
The result seems to be that all code thereafter is handled as straight text.
For example, this perl code:
require HTML::TreeBuilder;
$h = new HTML::TreeBuilder;
$h->parse(q(<FONT COLOR="#FF0000">Foo!</FONT COLOR><TITLE>Bar!</TITLE>));
print $h->as_HTML;
generates this output:
<HTML><BODY><P><FONT COLOR="#FF0000">Foo!FONT
COLOR><TITLE>Bar!</TITLE></FONT></BODY></HTML>
FWIW, Netscape navigator 3.01 seems to handle the malformed </FONT COLOR>
markup correctly.
(I'm using libwww-perl-5.07).