in reply to Customizing WWW::Mechanize

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.

--
Clayton