Enhancement
Major
Detail
Major
Detail
Conditions that apply to JavaScript tag content are described here: https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements
In particular, the following content is not legal:
<script> const example = 'Consider this string: <!-- <script>'; console.log(example); </script>.
However, such a constellation can occur if the code editor content is written as a script, because when writing string literals, the >` character is already quotet, but not the `< character. If a code editor contains an XML comment followed by a script tag, then exactly the above sequence occurs because the corresponding closing tags are quotet.
Test
Enter the text <!-- Comment --> <script type="text/javascript"></script> into a code editor and ensure that the content is rendered again. This can be done in the scripting GUI, for example.