Auto validating a page on load (using W3C validator)
<p>I am developing a web site whose HTML can vary quite a lot depending on user inputs (user input on page 1 decides which sections of page 2 are shown, etc). </p>

<p>Naturally, I would like to ensure that the HTML is valid, but there are a lot of permutations. </p>

<p>I was wondering if anyone has a code snippet which I could include (in debug mode) in my standard page footer template which would validate the page. That ought to help me catch a lot during development and unit testing.</p>

<p>The catch is that I am developing using NetBeans and Xampp, so my URL is on <code>http://localhost</code> which is not something I can feed to "validate by URL" ...</p>

<hr>

<p>The following will not work on <a href="http://localhost" rel="nofollow">http://localhost</a></p>

<ul>
<li>W3C "validate by URL"</li>
<li>Web Developer for FireFox</li>
<li>Total Validator for FireFox</li>
</ul>
