W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: Flagging & in URL in HTML 4.01 transitional type.

From: Tim Bagot <tsb-w3-validator-0004@earth.li>
Date: Fri, 8 Jun 2001 21:17:46 +0000 (UTC)
To: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33.0106082105370.2953-100000@windle.hack>
At 2001-06-08T12:36-0700, Peter K. Sheerin wrote:-

> What I have found seems to work reliably (though through admittedly limited
> testing) is the first method of escaping characters in URLs that I was
> taught years ago--the %hex encoding. This is in the HTML 4.01 spec at
> http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.
>
> So now I use %26 instead to insert an ampersand in a URL. This seems to work
> reliably with the server-side scripts and in the URL address box of all
> browsers.

There's nothing to stop individual scripts allowing this (most likely more
by accident than design), but it definitely should not work in general.
One purpose of hex escaping in URIs is to remove characters' specialness.
If the script allows "%26" instead of "&" as a field separator, how do you
include ampersands in submitted form data?

Tim Bagot
Received on Friday, 8 June 2001 17:17:59 GMT

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