Why does adding </script>
in a comment break the parser? Is this a bug or is there something in the documentation I've overlooked?
I've tested this in Chrome, Firefox, Opera, Internet Explorer and they all produce the same result.
Single-line comment:
function Foo(){
// </script>
alert("bar");
};
Foo();
Multi-line comment:
function Foo(){
/*
</script>
*/
alert("bar");
};
Foo();