b5d28d7d30
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.
28 lines
439 B
HTML
28 lines
439 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>[ #443678 ] Unclosed <script> in <head> 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>
|