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

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

From: Jim Correia <correia@barebones.com>
Date: Fri, 8 Jun 2001 12:52:09 -0400
To: www-validator@w3.org
Message-ID: <20010608125212-f01010601-fb3b3194@192.168.0.2>
On 12:11 PM 6/8/01 Mike Heins <mheins@redhat.com> wrote:

> I just went to a bunch ofunnecessary work -- due to the W3 validation
> suite flagging unencoded '&' in a URL for the HTML 4.01 transitional
> type.
> 
> Since every browser in the world must tolerate &, my opinion is that
> this is an artificially created tempest in a teapot, created by the
> failure of the validation suite writer to provide a "pedantic" mode.
> Or the failure of the specification writers to create an exception
> for this in the transitional type.

It is not.  You must encode &, otherwise

    <http://www.example.com/script.pl?foo=bar&copy=true>
    
can be interpreted as the copyright symbol, which is not what you
intended.  Encoding the ampersand will work, so just do it.

-- 
Jim Correia                                Bare Bones Software, Inc.
correia@barebones.com                     <http://web.barebones.com>
Received on Friday, 8 June 2001 12:52:20 GMT

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