jacques has asked for the wisdom of the Perl Monks concerning the following question:

I would like to validate the HTML pages produced by Mason for a website that is password protected.

How should I go about doing this? Would I use Mech and give it the login information and have it walk the site with HTML::Tidy?

  • Comment on Validating Mason pages on a protected site

Replies are listed 'Best First'.
Re: Validating Mason pages on a protected site
by ww (Archbishop) on Sep 16, 2005 at 18:12 UTC
    you could use http://validator.w3.org/, perhaps, by uploading the pages (from your local, non-protected machine), if you're generating the pages locally (which is NOT ruled out by the language of your question).
      Don't use the browser...use Webservice::Validator::HTML::W3C

      According to the perldoc there is a way to have the validator locally on your machine (doesn't say how though):

      validator_uri ... If you have a local installation of the validator ( recommended if you + wish to do a lot of testing ) or wish to use a validator at another +location then you can use this option.

      Also, read the perldoc's OTHER MODULES section.

      Celebrate Intellectual Diversity

      hmmm... not a bad idea, but I have many pages, so that would be cumbersome.
        install local http://validator.w3.org/source/