title: Are HTML comments inside script tags a best practice?
body: <p>The following practice is fairly commonplace in the inline JavaScript I have to work with:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     &lt;!--
         // Code goes here
     //--&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>I know that the point is to prevent browsers that are incompatible with JavaScript from rendering the source, but is this still a best practice today? The vast majority of browsers used today can interpret JavaScript; even modern mobile devices usually don't have trouble.</p>
  
  <p>As for the 'why not?' question: I recently had to spend several hours debugging an issue where someone had left off the '//' in front of a '-->' at the end of a script tag buried deep in some pages, and this was causing mysterious JavaScript errors.</p>
  
  <p>What do you do? Is this still considered a 'best practice?'</p>