- 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
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 UTC