The question is purely theoretical.
Often in other scripts I meet the <!-- Sign at the beginning. I will give a piece of code for an example (this is a LiveInternet counter)
<script> <!-- document.write("<a href='//www.liveinternet.ru/click' ... </script> The validator swears at an unclosed sign, but the script is proposed in this form, although without <!-- everything works fine too (like =)
Interested in why it is in the code and how to make it valid?