blob: 3c66a2ac29ee73b350c096ca181c3b0e6dfe9f90 [file] [log] [blame]
<html>
<head>
<style>
.different { color: #0000ff; }
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpPixels();
}
</script>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('This test checks that the first &lt;script&gt; tag after an unclosed &lt;style&gt; tag is parsed correctly. Early versions of the patch for <a href="https://bugs.webkit.org/show_bug.cgi?id=6314">Bugzilla Bug 6314</a> did not reset a state variable properly, causing the first &lt;script&gt;&lt;/script&gt; tag in the document to contain everything after the &lt;style&gt; tag. <p class="different">This text should also be blue.</p>');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>