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

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 UTC