tidy-html5/regression_testing/cases/legacy-expects/case-443678.html
Jim Derry b5d28d7d30 Fixes #523.
Added test case to test flexibility.
Updated old test case 443678, which is better with this fix.

This fixes #523 and tries to be as general as possible. Right now the fix is
only applied if the prev or next tag is a body level div, but perhaps should
be applied for anything that's acting as block level element. In any case,
the specific bug is killed.
2021-08-26 15:59:33 -04:00

28 lines
439 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>[ #443678 ] Unclosed &lt;script&gt; in &lt;head&gt; messes
Tidy</title>
<script src="bar.js">
function baz()
{
document.write( '<foo></foo>' );
document.write( "<bar>\"Some Text\"<\/bar>" );
}
</script>
<script src="foo.js"></script>
<style type="text/css">
body {
color: #FF0000;
}
</style>
</head>
<body>
Just a test.
<script>
test();
</script>
</body>
</html>