Wouldn't this be the domain of HTML::Lint ? It is by the same author as WWW::Mechanise I'm sure there's a reason that they are separate.
HTML::Lint - check for HTML errors in a string or file
The HTML::Lint distribution comes with Test::HTML::Lint a Test::More-style wrapper around HTML::Lint.
--In reply to Re: Customizing WWW::Mechanize
by clscott
in thread Customizing WWW::Mechanize
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |