Index: LayoutTests/fast/parser/entity-end-script-tag.html |
diff --git a/LayoutTests/fast/parser/entity-end-script-tag.html b/LayoutTests/fast/parser/entity-end-script-tag.html |
index afa788bebf1bfde304cf4dd4070b3c4755beff1b..2190d1d1e174479896c05144a10aeab539dcfdf2 100644 |
--- a/LayoutTests/fast/parser/entity-end-script-tag.html |
+++ b/LayoutTests/fast/parser/entity-end-script-tag.html |
@@ -1,19 +1,17 @@ |
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
-<html> |
-<head> |
+<!DOCTYPE html> |
+ |
<script src="../../resources/js-test.js"></script> |
-</head> |
-<body> |
-<script id="myscript"></script></script> |
<p id="description"></p> |
<div id="console"></div> |
<script> |
description("Test parsing of entity-escaped </script> 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>"); |
+expectError(); |
+</script> |
+<script id="myscript"></script></script> |
+<script> |
shouldHaveHadError("SyntaxError"); |
var expectedResult = '<' + '/script>'; |
shouldBe('document.getElementById("myscript").textContent', 'expectedResult'); |
</script> |
-</body> |
-</html> |