Subject: Re: [htdig] Ampersand in URL
From: Benjamin Smedberg (firstname.lastname@example.org)
Date: Mon Jan 17 2000 - 09:51:03 PST
> The second is when a page's author has mistakenly marked up a bare '&' in
> the URL as '&'. This is - of course - wrong, and htdig does not
> find the page. For example:
> 11:11:2:http://www.soton.ac.uk/~dja/test&test2.html: not found
> However, Netscape Navigator 4.05 (and probably other browsers) fixes
> this up and presents a link to http://www.soton.ac.uk/~dja/test&test2.html
> Is there an alternative to trying to persuade authors that their URLs
> are wrong even though they work with the usual browsers?
HTML entities are supposed to be escaped, even in a URL string which is
included in a tag, so the proper HTML for the above link is:
And so the author is correct. Reference in the HTML 4.01 spec is below.
+ Benjamin Smedberg
+ CUA Web Developer
+ email@example.com - http://computing.cua.edu/as/bds/
+ Then pealed the bells more loud and deep:
+ "God is not dead, nor doth He sleep;
+ The wrong shall fail, the right prevail,
+ With peace on earth, good will to men."
To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Mon Jan 17 2000 - 09:46:02 PST