- From: Philip Taylor (Webmaster, Ret'd) <P.Taylor@Rhul.Ac.Uk>
- Date: Fri, 06 Aug 2010 10:38:00 +0100
- To: tomasinap@meta-gen.com
- CC: David Dorward <david@dorward.me.uk>, www-validator@w3.org
David Dorward wrote: > On 6 Aug 2010, at 01:54, Tomasina Pierre wrote: >> the validator any match "&" also those in the javascript code >> example : if (MG.ParamCheck.login(IL.value, exp_login)&& MG.ParamCheck.passwd(IP.value, exp_passwd)) > > http://www.w3.org/TR/xhtml1/#h-4.8 > [The validator] treats the contents of script and style elements like any other text node (in XHTML), as the specification requires. So it is recommended that you wrap the content of your inline scripts in CDATA sections, as in the following : <script type="text/javascript"> <![CDATA[ ... unescaped script content ... ]]> </script> (taken from the content of the URL cited by David). Philip Taylor
Received on Friday, 6 August 2010 09:38:36 UTC