Jump to content

W3C XHTML validation


Recommended Posts

You know when you validate an xhtml page with the w3c validator, they give you a link to validate with the xhtml image. This is the code they give:

<p>	<a href="http://validator.w3.org/check?uri=referer"><img		src="http://www.w3.org/Icons/valid-xhtml10"		alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>  </p>

The link http://validator.w3.org/check?uri=referer doesn't seem to be working in IE7... I've just tested this. It's fine in FF2 but IE7 I get:

Sorry! This document can not be checked.No Referer header found!You have requested we check the referring page, but your browser did not send the HTTP "Referer" header field. This can be for several reasons, but most commonly it is because your browser does not know about this header, has been configured not to send one, or is behind a proxy or firewall that strips it out of the request before it reaches us. This is not an error in the referring page!Please use the form interface on the Validator Home Page (or the Extended Interface) to check the page by URL.
I guess one of the solutions would be to go with the uri query string. Anyone had this issue before and resolved it without using the query string?
Link to post
Share on other sites

Mhm... no. I've had this issue and never really solved it without the URI. Anyhow, why not just generate it with PHP for instance? The _SERVER["REQUEST_URI"] variable is ideal for this purpose. And with urlencode(), you can easily make the adress good for the query string.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...