W3C Validator.JS – Real AJAX Markup Validation Service

I’ve just finished my latest AJAX project – W3C Validator.JS. It is a real (x)html markup validator, that uses the W3C API for head requests. Except my own work on that website, W3C Validator.JS also utilizes two excellent AJAX/JSON scripts created by Jacob Seidelin of Nihilogic and Simon Wilson’s JSON-HEAD.

You may also put a validation link to W3C Validator.JS directly from your website using the following URL:

<a href="http://validator.wemakesites.net/#http://www.yourwebsite.com" rel="validate" title="Validate my Markup via W3C Validator.JS">Valid Markup</a>

To illustrate this, click the following link to validate my WordPress blog (unfortunately its markup is invalid).

Have fun with W3C Validator.JS!

Advertisements

9 comments

  1. This is pretty awesome. Very good job. I’d like to point out that the layout is breaking in FF2.0/WinXP SP2.

    You’ll notice the check button is breaking. I think giving a#ValidateBtn a display:block will fix the problem there.

    1. Ако PHP кодът е парснат правилно на сървъра, то на клиента изобщо не трябва да има PHP тагове. Валидаторът проверява парснат, а не сървърен код.

    1. Да, SGML парсърът вижда “&” като грешка, и всъщност това наистина е грешка. Просто трябва да коригираш начинът, по който сървърът ти генерира ентитита, т.е. “& amp;” (без интервал) вместо само “&”.

      http://bg.php.net/htmlspecialchars

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s