W3C home > Mailing lists > Public > www-validator@w3.org > December 2008

W3C Markup Validation with JavaScript

From: Jacob Seidelin <cupboy@gmail.com>
Date: Sun, 30 Nov 2008 12:23:33 +0100
Message-ID: <493277B5.4030901@gmail.com>
To: www-validator@w3.org

Hi,

It was suggested to me that I dropped a line about a small JavaScript 
function I made.
It basically lets you validate a given URL with a JavaScript function 
call, something like:

validate("http://www.google.com/",
  function(response) {
    alert(response.status);
  }
);

It works by sending HEAD requests to the W3 validator via Simon 
Willison's json-head microservice and then gathering the results from 
the HTTP headers.

You can check it out here: 
http://blog.nihilogic.dk/2008/11/w3c-markup-validation-with-javascript.html

Cheers,
Jacob Seidelin
http://blog.nihilogic.dk/
Received on Monday, 1 December 2008 08:42:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:33 GMT