I may well be wrong, but as far as I understand it it's not needed at
all if your files (javascript, or stylesheets for that matter) are external.
When your script is embedded in the page, it needs the proper commenting there
as it needs to "live" within a well-formed XML file. When it's outside of it,
there's no such requirement.

Unless I've misinterpreted the advice
in C.4. http://www.w3.org/TR/xhtml1/#guidelines

Patrick
________________________________
Patrick H. Lauke
Webmaster / University of Salford
http://www.salford.ac.uk

> -----Original Message-----
> From: Nick Gleitzman
> Sent: 21 July 2004 14:23
> To: [EMAIL PROTECTED]
> Subject: [WSG] Comment syntax in external javascript files?
> 
> 
> Hi all
> 
> Can anyone please tell me how much of the following is needed if I'm 
> calling javascript from an external file into a XHTML Strict 
> code file?
> 
> I know that for javascript included *in* the file, the 
> comment syntax is
> 
> <script type="text/javascript"><!--//--><![CDATA[//><!--
> //script contents here...
> //--><!]]></script>
> 
> but what's the go in an external file? I presume the CDATA prolog is 
> still needed - but how much of it?
> 
> TIA
> 
> Nick
> ___________________________
> Omnivision. Websight.
> http://www.omnivision.com.au/
> 
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> ***************************************************** 
> 
> 
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************

Reply via email to