| CPAN Ratings WebService-Validator-HTML-W3C reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of WebService-Validator-HTML-W3C
This package lets you send local HTML to the W3C validator and offers easy-to-use results to judge standards compliance of your markup. I use this as part of my test suite for web apps: I use Test::WWW::Mechanize::Catalyst and validate every page I touch. To do this, I run my own local copy of the W3C validator (to avoid burdening the real w3c server and to let me work offline) which this module supports quite nicely.
I've added my own MD5-keyed caching in front of this module since I check the same HTML over and over. I think it's appropriate that this module does not offer caching itself -- simple is good. This module made adding my own caching quite easy by letting me override the LWP::UserAgent instance that it uses internally with my own caching subclass.
There's also a corresponding WebService::Validator::CSS::W3C package which does similar work for CSS. They have fairly similar APIs, but some significant differences (e.g. one returns a list from $v->warnings, one returns an arrayref -- grr). It would be nice if those two packages matched their APIs up a little better to let scaffold code use them polymorphically.
Chris Dolan - 2008-06-07T23:02:02
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|