Re: mailto and &

by "Harold A. Driscoll" <harold(at)driscoll.chi.il.us>

 Date:  Fri, 17 Mar 2000 12:43:16 -0600
 To:  ht(at)ohlsen.dk
 Cc:  John Suggate <j.suggate(at)ch.steiner.school.nz>, "'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
 References:  school
  todo: View Thread, Original
At 04:45 17-03-00 , Hans-Henrik T. Ohlsen wrote:
>I'm surprised that any of them validate. You're using the 
>ampersand (&), and that's definitely a no-no in Internet 
>addresses. you have 0-9 and a-z plus hyphen and 
>underscore, and that's about it.

Where, pray tell, did you extract these ~Words of Wisdom~?

Let's refer to the technical specification for email addresses, IETF RFC
822 (August 13, 1982), where you'd find after a perusal of the BNF
productions, that such is very much _not_ the case. Note in particular the
definition of "addr-spec," and more particularly of "local-part."

Perhaps, you might have even noticed that even the address to which you
were sending your messages failed the rule-set you suggest.

> It's not some of your programs that are faulty - 
> it's your choice of email address.

Nope. The choice of email address is quite valid. Perhaps not enlightened,
since it does use a character (&) that requires special handling in some
contexts, but nevertheless quite valid.

The answer to the original question is the basic rule of HTML that _every_
occurrence of the & character within _any_ HTML file needs to be quoted (as
&amp or &amp;). Once that is done, once the problem reported by the HTML
validator is fixed, the problem goes away.

Safe computing,  /Harold
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Harold A. Driscoll                 mailto:Harold(at)Driscoll.Chi.IL.US
#include <std/disclaimer>                 http://Driscoll.Chi.IL.US

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.