tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / parser / entity-end-script-tag.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script id="myscript">&lt;/script></script>
8 <p id="description"></p>
9 <div id="console"></div>
10 <script>
11 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>");
12
13 shouldHaveHadError("SyntaxError");
14
15 var expectedResult = '&lt;' + '/script>';
16 shouldBe('document.getElementById("myscript").textContent', 'expectedResult');
17 </script>
18 <script src="../js/resources/js-test-post.js"></script>
19 </body>
20 </html>