Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-Lint CPAN distribution.

Report information
The Basics
Id: 6379
Status: resolved
Priority: 0/
Queue: HTML-Lint

People
Owner: Nobody in particular
Requestors: mvr707 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
From: ken.prows#online-rewards.com
This does indeed seem to be the case. However, if you test a chunk like this, it works correctly: $Lint->parse("<html><head></head><body>$Chunk</body></html>"); - Ken Prows
Yes, this is a known limitation. It'd be nice if we could do chunks, but I'm not sure we'll ever add it.