-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Description
Given the following input file:
<html>
<head>
<title>Hello</title>
</head>
<body>
<p>
Hello world!
<p>
How are you?
<p> Good!
<img alt="baz" src="baz.png"/>
<img alt="foo" src="foo.png">
<br/>
<br>
foo:bar>asdf/foo:bar>
</body></html>Running ./tidy5 -access 1 --vertical-space f -wrap 0 file.html produces:
<!DOCTYPE html>
<html>
<head>
<title>Hello</title>
</head>
<body>
<p>Hello world!</p>
<p>How are you?</p>
<p>Good! <img alt="baz" src="baz.png"></img> <img alt="foo" src="foo.png"><br></br>
<br>
foo:bar>asdf/foo:bar></p>
</body>
</html>Tidy shouldn't add closing tags for void elements (note the </img> and </br>), as those aren't legal in HTML5.