Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Validating Mason pages on a protected site

by jacques (Priest)
on Sep 16, 2005 at 18:06 UTC ( [id://492705]=perlquestion: print w/replies, xml ) Need Help??

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/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://492705]
Approved by Limbic~Region
Front-paged by monkfan
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found