blob: e9cfe2ff46f24109edee366ce84ddbbacc4d0c4c [file] [log] [blame]
<html>
<head>
<style>
.different { color: #0000ff; }
<link rel="stylesheet" href="resources/js-test-style.css">
<script>
var successfullyParsed = true;
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.dumpPixels();
}
</script>
<script src="resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<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="http://bugzilla.opendarwin.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>