HTML::Lint

HTML::Lint can check for HTML errors in a string or file.
Download

HTML::Lint Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andy Lester
  • Publisher web site:
  • http://search.cpan.org/~petdance/Test-Memory-Cycle-1.04/Cycle.pm

HTML::Lint Tags


HTML::Lint Description

HTML::Lint can check for HTML errors in a string or file. HTML::Lint can check for HTML errors in a string or file.SYNOPSIS my $lint = HTML::Lint->new; $lint->only_types( HTML::Lint::STRUCTURE ); $lint->parse( $data ); $lint->parse_file( $filename ); my $error_count = $lint->errors; foreach my $error ( $lint->errors ) { print $error->as_string, "n"; }HTML::Lint also comes with a wrapper program called weblint that handles linting from the command line: $ weblint http://www.cnn.com/ http://www.cnn.com/ (395:83) < IMG SRC="spacer.gif" > tag has no HEIGHT and WIDTH attributes. http://www.cnn.com/ (395:83) < IMG SRC="goofus.gif" > does not have ALT text defined http://www.cnn.com/ (396:217) Unknown element < nobr > http://www.cnn.com/ (396:241) < /nobr > with no opening < nobr > http://www.cnn.com/ (842:7) target attribute in < a > is repeatedAnd finally, you can also get Apache::HTML::Lint that passes any mod_perl-generated code through HTML::Lint and get it dumped into your Apache error_log. /foo.pl (1:45) < /p > with no opening < p > /foo.pl (1:49) Unknown element < gronk > /foo.pl (1:56) Unknown attribute "x" for tag < table > Requirements: · Perl


HTML::Lint Related Software