views:

49

answers:

1

One of the first things I like to do when I make a site is to put in links at the bottom of the page to check for valid HTML and CSS:

HTML5  •   CSS
<div>
   <a href="http://validator.w3.org/check?uri=referer"&gt;HTML5&lt;/a&gt;
   <a href="http://jigsaw.w3.org/css-validator/check/referer/"&gt;CSS&lt;/a&gt;
</div>

However, when you have content that you must be logged in to see, these links are useless because all you get is your login page (or error page or whatever).

I would love to be able to cook up some way of grabbing the source using javascript, then sending the string to w3c as post data so it thinks you did the "validate by input" option.. I suppose you could do:

document.getElementsByTagName('html')[0].innerHTML

..but then you don't get the DOCTYPE. Anyone have any ideas? Is this even possible?

+1  A: 

No need for links, and you can use it anywhere while you're developing.

PatrikAkerstrand
Thanks for the plugins, they're helpful.. I was actually hoping to have them so that other developers would use them who normally don't! But I suppose these will have to work.
Stephen J. Fuhry