Dave Higton  wrote

> In message <57e4a64755.iyoj...@rickman.argonet.co.uk>
>           John Rickman Iyonix <rick...@argonet.co.uk> wrote:

>>As far as I know javascript should ignore html comments and the
>>javascript validator does not flag them as errors
>>
>> http://www.javascriptlint.com/online_lint.php

> My reference suggests that an HTML comment is /not/ a legal Javascript
> comment.  Perhaps you should open a discussion with the author of the
> above application.  I would, of course, be very interested to know the
> conclusion!

It doesn't really matter now as I have changed all the comments to 
"proper" JavaScript style. I don't remember where I got the idea that 
html style was acceptable in JS, but the article in this link says 
they are ok:-
  http://www.javascripter.net/faq/comments.htm

I will investigate further.

John

-- 
John Rickman -  http://rickman.orpheusweb.co.uk/lynx

Reply via email to