W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: Javascript within href reported as error if contains & or =

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 12 Apr 2007 08:26:09 +1000
Message-ID: <461D6081.1050501@lachy.id.au>
To: Peter Jones <jonespm2@shaw.ca>
CC: www-validator@w3.org

Peter Jones wrote:
> The validator reports errors, like 'cannot generate system identifier for
> general entity "barney"' and 'reference not terminated by REFC delimiter'
> 
> <a href="javascript:myFunc('fred&barney=flintstones');">Test</a>

Please read the explanation provided by the validator and the FAQ 
entries it links to.

http://validator.w3.org/docs/help.html#faq-ampersand
http://www.htmlhelp.com/tools/validator/problems.html#amp

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 11 April 2007 22:26:55 GMT

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