3 ms·
> you probably still can't use the string literal '</script>' within an inline script. You're right: https://jsfiddle.net/pLo9bdhs https://jsfiddle.net/pLo9bdh
by sadjad 7y ago
> you probably still can't use the string literal '</script>' within an inline script.
You're right: https://jsfiddle.net/pLo9bdhs https://jsfiddle.net/pLo9bdhs
- deleted 7y ago[deleted]
- pluma 7y agoThink about the failure cases for `</script>` and `</style>` and it's obvious why the spec defines them that way. If CSS and JS syntax were to decide when the end tags can appear, some malformed CSS or JS would break the end tag and cause the entire rest of the document to vanish as the browser wouldn't recognise it as HTML.