W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

Re: Simple fix for "No Referer header found!"

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Thu, 03 Mar 2005 00:02:04 +0200
To: hal5@hiwaay.net
Cc: www-validator@w3.org
Message-Id: <1109800924.15077.287.camel@bobcat.mine.nu>

On Tue, 2005-03-01 at 19:29 -0600, hal5@hiwaay.net wrote:

> =============== SUGGESTED HTML CODE SAMPLE =======================
> <p>
>   <a href="http://validator.w3.org/check?uri=referer"
>      onclick="this.href='http://validator.w3.org/check?uri=' + 
> document.URL"><img

document.URL needs to be URI escaped.  That would be
escape(document.URL), but escape() is quirky, and works ok for
ISO-8859-1 only.  The ECMA compliant encodeURIComponent() looks more
promising, but I have doubts about browsers' support for it, especially
slightly older ones.

In other words, I don't think opening this can of worms is worth it.
Received on Wednesday, 2 March 2005 22:02:06 GMT

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