blob: 039f4dfbe1a8fc4a421e4ab632aa68ef1d638323 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script id="myscript">&lt;/script></script>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test parsing of entity-escaped &lt;/script&gt; tag for <a href=\"https://bugs.webkit.org/show_bug.cgi?id=7931\">Bug 7931: Escaped elements within a textarea block can cause the textarea box to be closed prematurely</a>");
shouldHaveHadError("SyntaxError");
var expectedResult = '&lt;' + '/script>';
shouldBe('document.getElementById("myscript").textContent', 'expectedResult');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>