W3C home > Mailing lists > Public > www-validator@w3.org > August 2010

Re: [VE][404] Add Subject Here

From: Tomasina Pierre <sora@meta-gen.com>
Date: Fri, 06 Aug 2010 13:58:16 +0200
Message-ID: <4C5BF8D8.7060706@meta-gen.com>
To: "Philip Taylor (Webmaster, Ret'd)" <P.Taylor@Rhul.Ac.Uk>
CC: tomasinap@meta-gen.com, David Dorward <david@dorward.me.uk>, www-validator@w3.org
Le 06/08/2010 11:38, Philip Taylor (Webmaster, Ret'd) a écrit :
>
>
> 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).
>

Ok, thanks, it work, but must commented <![CDATA[ for analyse javascript

<script type="text/javascript">
     //<![CDATA[
         ... unescaped script content ...
     //]]>
</script>

Now my page is valide W3C, Thanks for you fast response
(I do not know how to close the request)

-- 
Cordialement Tomasina Pierre
Received on Friday, 6 August 2010 11:58:58 GMT

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