petdance/html-lint — Issue #3: Allow ignoring tags
Author: petdance
Created: 2011-12-05 22:59:20+00:00
State: open

From: carbon@pobox.com
http://rt.cpan.org/Ticket/Display.html?id=16514

I use HTML::Lint on my HTML::Template templates. HTML::Template has defines
tags not used by HTML to allow it to its mojo such as ,
, , etc. HTML::Lint complains heavily because of this.
I would like a way to define tags that HTML::Lint will ignore so that I can
see true problems. I would imagine the programmers interface to such a
feature would be similar to how only_types is setup now.

Single tag on construction:
my $lint = HTML::Lint->new( ignore_tags => '' );

Many tags on construction:
my $lint = HTML::Lint->new( ignore_tags =>[ '', ''] );

Via method:
$lint->ignore_tags( $tag1[, $tag2...] );