Forum Moderators: open
My problem is how do I validate sites that are dynamically generated?
Currently I just browse through the various pages and on each page I 'View Source' and then save it somewhere so I can validate it.
However this gets very boring very quickly.
Is there anything out there that will allow me to browse through the pages and validate them as I go? Perhaps validating in one frame and displaying the site in the other?
I can't be alone on this one - how does everyone else cope with this?
If it's just text and images being dynamically created, I make sure that the template handles the alt and title tags and then validate a couple of pages after they are generated. If your template is good and the sample pages validate, then it is reasonable to assume that your other pages are also compliant.
mattur: yeah there are various forms and sessions to worry about. Both of which affect content. I can't just add query strings to the url though because the forms use the post method and the sessions use session cookies.
What I think I need is a framed validator which validates each page as I visit it and displays the results in a frame. If I can't find one then I might have to write it myself - can't be that hard :)
For Mozilla there is a very handy plugin, called Checky ([checky.mozdev.org ]). It adds lots of validation options to the context menu: just right click on your page and pick your choice. Not only HTML validation at W3.org, but also at the WDG. Includes options for validating CSS (at W3 and WDG), and testing your site for accessibility. Very nice!
I notice that Tantek has a validator favelet [favelets.com] that works on IE too.
Would still be better is it all worked in a frame - maybe I'll write something in the future - but this is cool for now.
Validate HTML: javascript:void(window.open('http://validator.w3.org/check?uri='+window.location+'&doctype=HTML+4.01+Transitional&ss='))
Validate CSS: javascript:void(window.open('http://jigsaw.w3.org/css-validator/validator?uri='+window.location+'&warning=1&profile=css2'))
Open the page you want to check then click the link. A new window opens with the validation results.
Above links are preset to HTML 4.01 Transitional; but are easily edited to XHTML or to Detect Automatically.