W3C home > Mailing lists > Public > www-validator@w3.org > January 2000

Re: validator bug ?

From: Harold A. Driscoll <harold@driscoll.chi.il.us>
Date: Wed, 26 Jan 2000 10:37:35 -0600
Message-Id: <Version.32.20000126102832.01da48d0@pop.interaccess.com>
To: Jens Elkner <elkner@usg.iff.fhg.de>
Cc: www-validator@w3.org
At 00:11 22-01-00 , Jens Elkner wrote:
>I just checked some pages with the w3 validator for HTML 
>4.01 strict and got an error for all anchors, which have an 
>"&" in the URI (e.g.  on

>AFAIK, & is allowed in URIs and should not be interpreted 
>as an single entity.So is it a tiny validator bug or did I miss 
>something????

Yes... & is a character allowed within a URI.

No... this is not a validator bug.

Perhaps, and apparently you have.

The & character _is_ allowed within a URI. Ergo, whey you specify the URL
to a browser, or to utilities such as lwp-request, it will work quite nicely.

Within an HTML page, however, & is one of the characters that need to be
specified in a special way (quoted). Ergo, when you express such a URL
within an HTML file, such as within an HREF, you need to express any & as
&amp (or &amp;), just as you would anywhere else within the HTML file.

Safe computing,  /Harold

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Harold A. Driscoll                 mailto:Harold@Driscoll.Chi.IL.US
#include <std/disclaimer>                 http://Driscoll.Chi.IL.US
Received on Wednesday, 26 January 2000 11:43:02 GMT

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