| <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 <script> tag after an unclosed <style> 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 <script></script> tag in the document to contain everything after the <style> tag. <p class="different">This text should also be blue.</p>'); |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |