Jump to content

W3C XHTML validation


vchris
 Share

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 comment
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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...