The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 2.22 - 2015-04-06

  • CHANGES THAT COULD BREAK YOUR CODE
    • Previously, html_ok() would not check the entire structure of a web page to check for <html>, <head>, <title> and <body> tags. Now it will. If you want to check fragments of HTML for validity but know that they are not valid HTML documents on their own, use the new html_fragment_ok().
  • ENHANCEMENTS
    • Added new error, elem-input-alt-missing, that warns of <input type="image"> tags that are missing an alt="" attribute. This helps for accessability to make sure that any images have alternate text for screen readers.
    • Added ability to modify HTML::Lint's table of known tags and attributes, so you could do this:
      • Add an attribute that your company uses. HTML::Lint::HTML4::add_attribute( 'body', 'proprietary-attribute' );
      • Add the HTML 5 <canvas> tag. HTML::Lint::HTML4::add_tag( 'canvas' ); HTML::Lint::HTML4::add_attribute( 'canvas', $_ ) for qw( height width );
  • FIXES
    • Test::HTML::Lint::html_ok() would not call the HTML::Lint eof() method, which meant it wouldn't do document-wide tests.

Modules

check for HTML errors in a string or file
Error object for the Lint functionality
Rules for HTML 4 as used by HTML::Lint.
Parser for HTML::Lint. No user-serviceable parts inside.
Test::More-style wrapper around HTML::Lint