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.
29 lines
958 B
HTML
29 lines
958 B
HTML
<!--
|
|
This test case is for issue #523, in which a space is placed after the
|
|
closing tag of certain elements. For example below, a space is added after
|
|
the first script closing tag and after the img tag.
|
|
-->
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>test</title>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
</script>
|
|
<script type="text/javascript">
|
|
</script>
|
|
<h1>Hello</h1>
|
|
<script type="text/javascript">
|
|
</script>
|
|
<img src="hi.jpg">
|
|
<script type="text/javascript">
|
|
</script>
|
|
<p>This is a block level element, and as such, is capable of inlining inline elements.<script type="text/javascript">let x = "Hello, world"</script> Scripts are inline elements, so this script should be included in the flow.</p>
|
|
<script type="text/javascript"></script><img src="bye.jpg"><script type="text/javascript"></script>
|
|
<hr>
|
|
<p>This is another paragraph with an <img src="meh.jpg"> tag inline.</p>
|
|
<img src="one.jpg"><img src="two.jpg"><img src="three.jpg">
|
|
</body>
|
|
</html>
|