Javascript within href reported as error if contains & or =

The validator reports errors, like 'cannot generate system identifier for
general entity "barney"' and 'reference not terminated by REFC delimiter'
when code like the following is submitted.  Checking within the href
attribute should be turned off when it begins with 'javascript, unless you
really are going to check it as javascript.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test Validator</title>
<a href="javascript:myFunc('fred&barney=flintstones');">Test</a>
Thanks for the good work!


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 09/04/2007
10:59 PM

Received on Wednesday, 11 April 2007 22:02:10 UTC