Open Gilwyad opened 9 years ago
HTML::Lint only supports HTML4. Chances are that it will never support HTML5. The W3C is updating the tidy tool to support HTML5, so that might be a place to look. https://github.com/htacg/tidy-html5
I'm assuming you mean only supports HTML4 and might never support HTML5.
Thanks, I ended up using HTML::Lint::Pluggable::HTML5, works perfectly with Test::WWW::Mechanize autolint.
my $lint = HTML::Lint::Pluggable->new(); # plugin system for HTML::Lint
$lint -> load_plugin("HTML5"); # loads HTML::Lint::Pluggable::HTML5
$lint -> load_plugin("TinyEntitesEscapeRule"); # loads HTML::Lint::Pluggable::TinyEntitesEscapeRule
my $mech = Test::WWW::Mechanize->new(
autolint => $lint,
cookie_jar => undef
);
Please take a look at https://github.com/petdance/html-tidy5
prints the following errors when executed:
Is this module strictly for HTML4? Will 5 be ever supported? Or how can I ignore HTML5 elements?
What can I use to validate HTML5?