Date: | Fri, 21 May 2004 13:16:33 -0700 (PDT) |
From: | Ramana Mokkapati <mvr707 [...] yahoo.com> |
Subject: | HTML::Lint does not report errors on HTML chunks |
To: | andy [...] petdance.com |
Hi,
HTML::Lint catches errors on full html, but not on
chunks.
Eg. the following code fragment fails to report that
<center> tag is not closed.
Is this a known limitation?
Thanks,
Ramana
my $str = <<EOF;
<center>
<table border=0 width=100% bgcolor=#ccffcc>
<tr align=center><td>
<font size=+2><b>Here is an announcement!!!
MOre</b></font>
</td></tr>
</table>
EOF
my $a = new HTML::Lint;
$a->parse($str);
my $ecount = $a->errors;
foreach my $e ($a->errors) {
print $e->as_string, "\n";
}
Show quoted text
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer