title: Why does adding </script> in a comment break the parser?
body: <p>Why does adding <code>&lt;/script&gt;</code> in a comment break the parser? Is this a bug or is there something in the documentation I've overlooked?</p>
  
  <p>I've tested this in Chrome, Firefox, Opera, Internet&nbsp;Explorer and they all produce the same result.</p>
  
  <p><strong>Single-line comment:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function Foo(){
    // &lt;/script&gt;
    alert("bar");
  };
  
  Foo();</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Multi-line comment:</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function Foo(){
    /*
        &lt;/script&gt;
    */
    alert("bar");
  };
  
  Foo();</code></pre>
  </div>
  </div>
  </p>