Skip to content

Commit 3123900

Browse files
committed
Updated testbase with HTML Tidy 5.5.0 (same as 5.4.0)
1 parent 9172aa2 commit 3123900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+150
-275
lines changed

cases/_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
5.1.45-Exp3
1+
5.5.0
22

cases/testbase-expects/case-1050673.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 1 column 1 - Warning: inserting implicit <body>
33
line 1 column 1 - Warning: missing </b> before <ul>
4-
line 3 column 1 - Warning: missing <li>
5-
line 4 column 1 - Warning: missing </b>
64
line 3 column 1 - Warning: missing </noframes>
75
line 2 column 1 - Warning: missing </ul>
86
line 1 column 1 - Warning: inserting missing 'title' element
97
line 1 column 1 - Warning: trimming empty <b>
108
line 3 column 1 - Warning: trimming empty <noframes>
11-
line 3 column 1 - Warning: trimming empty <li>
129
line 2 column 1 - Warning: trimming empty <ul>
13-
line 4 column 1 - Warning: trimming empty <b>
1410
Info: Document content looks like HTML5
15-
Tidy found 13 warnings and 0 errors!
11+
Tidy found 9 warnings and 0 errors!
1612

1713
About HTML Tidy: https://github.com/htacg/tidy-html5
1814
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1056023.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 1 column 1 - Warning: inserting implicit <body>
3-
line 1 column 1 - Warning: <tfoot> isn't allowed in <body> elements
4-
line 1 column 1 - Info: <body> previously mentioned
5-
line 1 column 1 - Warning: inserting implicit <table>
63
line 2 column 1 - Warning: discarding unexpected </tbody>
7-
line 1 column 1 - Warning: missing </table>
84
line 1 column 1 - Warning: inserting missing 'title' element
95
line 1 column 1 - Warning: trimming empty <tfoot>
10-
line 1 column 1 - Warning: trimming empty <table>
116
Info: Document content looks like HTML5
12-
Tidy found 9 warnings and 0 errors!
7+
Tidy found 5 warnings and 0 errors!
138

149
About HTML Tidy: https://github.com/htacg/tidy-html5
1510
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1063256.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 4 column 1 - Warning: discarding unexpected <frame>
33
line 5 column 1 - Error: <overlay> is not recognized!
44
line 5 column 1 - Warning: discarding unexpected <overlay>
5-
line 6 column 1 - Warning: <bgsound> isn't allowed in <body> elements
6-
line 6 column 1 - Info: <body> previously mentioned
75
line 9 column 1 - Warning: <spacer> isn't allowed in <tr> elements
86
line 8 column 1 - Info: <tr> previously mentioned
97
line 5 column 1 - Warning: missing </noframes>
108
line 1 column 1 - Warning: inserting missing 'title' element
119
line 8 column 1 - Warning: trimming empty <tr>
1210
line 2 column 1 - Warning: <frameset> element removed from HTML5
1311
line 5 column 1 - Warning: <noframes> element removed from HTML5
14-
line 6 column 1 - Warning: <bgsound> is not approved by W3C
1512
line 9 column 1 - Warning: <spacer> is not approved by W3C
13+
line 6 column 1 - Warning: <bgsound> is not approved by W3C
1614
Info: Document content looks like HTML5
17-
Tidy found 12 warnings and 1 error!
15+
Tidy found 11 warnings and 1 error!
1816

1917
This document has errors that must be fixed before
2018
using HTML Tidy to generate a tidied up version.

cases/testbase-expects/case-1086083.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
</td>
1414
</tr>
1515
</table>
16-
<ul>
17-
<li>Huh?</li>
18-
</ul>
16+
<li>Huh?</li>
1917
</body>
2018
</html>

cases/testbase-expects/case-1086083.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
line 11 column 1 - Warning: inserting implicit <ul>
22
line 11 column 1 - Warning: missing </ul> before </td>
3-
line 16 column 1 - Warning: <li> isn't allowed in <body> elements
4-
line 6 column 1 - Info: <body> previously mentioned
5-
line 16 column 1 - Warning: inserting implicit <ul>
6-
line 18 column 1 - Warning: discarding unexpected </body>
7-
line 19 column 1 - Warning: discarding unexpected </html>
8-
line 16 column 1 - Warning: missing </ul>
93
Info: Doctype given is "-//W3C//DTD HTML 4.01//EN"
104
Info: Document content looks like HTML 4.01 Strict
115
Info: No system identifier in emitted doctype
12-
Tidy found 7 warnings and 0 errors!
6+
Tidy found 2 warnings and 0 errors!
137

148
About HTML Tidy: https://github.com/htacg/tidy-html5
159
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1316307b.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
<title>1316307-2</title>
55
</head>
66
<body>
7+
<ul>
8+
<td>Cell Data</td>
9+
</ul>
710
<table>
811
<tr>
9-
<td>Cell Data</td>
12+
<td></td>
1013
</tr>
1114
</table>
1215
</body>

cases/testbase-expects/case-1316307b.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
line 7 column 1 - Warning: <ul> isn't allowed in <tr> elements
22
line 6 column 1 - Info: <tr> previously mentioned
3-
line 11 column 1 - Warning: discarding unexpected </ul>
3+
line 12 column 1 - Warning: missing <td>
44
line 5 column 1 - Warning: <table> lacks "summary" attribute
5-
line 7 column 1 - Warning: trimming empty <ul>
65
Info: Doctype given is "-//W3C//DTD HTML 4.0 Transitional//EN"
76
Info: Document content looks like HTML 4.01 Strict
87
Info: No system identifier in emitted doctype
9-
Tidy found 4 warnings and 0 errors!
8+
Tidy found 3 warnings and 0 errors!
109

1110
The table summary attribute should be used to describe
1211
the table structure. It is very helpful for people using

cases/testbase-expects/case-1331849.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
</head>
66
<body>
77
Text BEFORE [implied] table
8-
<table>
9-
<tr>
10-
<td>Implied table cell.</td>
11-
<td>Implied because there is no opening table tag - just an
12-
opening table row tag.</td>
13-
</tr>
14-
<tr>
15-
<td width="2%"
16-
valign="top">2nd Row of implied table</td>
17-
<td>More text</td>
18-
</tr>
19-
</table>Text AFTER [implied] table but BEFORE the correctly
8+
<tr>
9+
<td>Implied table cell.</td>
10+
<td>Implied because there is no opening table tag - just an
11+
opening table row tag.</td>
12+
</tr>
13+
<tr>
14+
<td width="2%"
15+
valign="top">2nd Row of implied table</td>
16+
<td>More text</td>
17+
</tr>Text AFTER [implied] table but BEFORE the correctly
2018
specified table
2119
<table border="1">
2220
<tr>

cases/testbase-expects/case-1331849.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
line 9 column 1 - Warning: <tr> isn't allowed in <body> elements
2-
line 6 column 1 - Info: <body> previously mentioned
3-
line 9 column 1 - Warning: inserting implicit <table>
4-
line 9 column 1 - Warning: <table> lacks "summary" attribute
1+
line 25 column 1 - Warning: discarding unexpected </table>
52
line 29 column 1 - Warning: <table> lacks "summary" attribute
63
Info: Doctype given is "-//W3C//DTD HTML 4.0 Transitional//EN"
74
Info: Document content looks like HTML 4.01 Transitional
85
Info: No system identifier in emitted doctype
9-
Tidy found 4 warnings and 0 errors!
6+
Tidy found 2 warnings and 0 errors!
107

118
The table summary attribute should be used to describe
129
the table structure. It is very helpful for people using

cases/testbase-expects/case-1333579.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77
</style>
88
</head>
99
<body>
10+
<td>inferred table</td>
1011
<div class="c1">
1112
<p>Paragraph Text nested in a DIV</p>
1213
</div>
13-
<table>
14-
<tr>
15-
<td>inferred table</td>
16-
</tr>
17-
</table>
1814
</body>
1915
</html>

cases/testbase-expects/case-1333579.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
2-
line 4 column 1 - Warning: <td> isn't allowed in <body> elements
3-
line 3 column 1 - Info: <body> previously mentioned
4-
line 4 column 1 - Warning: inserting implicit <table>
5-
line 4 column 1 - Warning: missing <tr>
6-
line 5 column 1 - Warning: <div> isn't allowed in <tr> elements
7-
line 4 column 1 - Info: <tr> previously mentioned
8-
line 4 column 1 - Warning: missing </table> before </body>
92
Info: Document content looks like HTML5
10-
Tidy found 6 warnings and 0 errors!
3+
Tidy found 1 warning and 0 errors!
114

125
About HTML Tidy: https://github.com/htacg/tidy-html5
136
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1398397.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 2 column 1 - Warning: inserting implicit <body>
33
line 3 column 1 - Warning: <ul> isn't allowed in <table> elements
44
line 2 column 1 - Info: <table> previously mentioned
5+
line 3 column 1 - Warning: missing </ul>
56
line 2 column 1 - Warning: missing </table>
67
line 2 column 1 - Warning: inserting missing 'title' element
7-
line 3 column 1 - Warning: trimming empty <ul>
88
line 4 column 1 - Warning: trimming empty <tr>
9+
line 3 column 1 - Warning: trimming empty <ul>
910
line 2 column 1 - Warning: trimming empty <table>
1011
Info: Document content looks like HTML5
11-
Tidy found 8 warnings and 0 errors!
12+
Tidy found 9 warnings and 0 errors!
1213

1314
About HTML Tidy: https://github.com/htacg/tidy-html5
1415
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1410061a.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
restricted spaces. The Compact E.O.S. can be extended at the back
1515
with a table for film processing from a darkroom.<br>
1616
<br>
17+
<li>capacity: up to 240 films per hour (medium format)<br>
1718
<ul class="c1">
18-
<li>capacity: up to 240 films per hour (medium format)<br></li>
1919
<li>cassette cycle time: 15 s<br></li>
2020
<li>film formats: 18 x24cm to 35 x 43cm<br></li>
2121
<li>film storage magazines that can be used: Curix, Scopix<br></li>
@@ -33,5 +33,6 @@
3333
possible service messages<br>
3434
<br></li>
3535
</ul>
36+
</li>
3637
</body>
3738
</html>

cases/testbase-expects/case-1410061a.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
2-
line 6 column 319 - Warning: <li> isn't allowed in <body> elements
3-
line 5 column 1 - Info: <body> previously mentioned
4-
line 6 column 319 - Warning: inserting implicit <ul>
5-
line 6 column 1041 - Warning: discarding unexpected </li>
2+
line 6 column 378 - Warning: inserting implicit <ul>
3+
line 6 column 378 - Warning: missing </ul> before </li>
64
line 6 column 1046 - Warning: discarding unexpected </li>
75
line 6 column 1051 - Warning: discarding unexpected </li>
86
line 6 column 1056 - Warning: discarding unexpected </li>
@@ -12,11 +10,8 @@ line 6 column 1071 - Warning: discarding unexpected </li>
1210
line 6 column 1076 - Warning: discarding unexpected </li>
1311
line 6 column 1081 - Warning: discarding unexpected </li>
1412
line 6 column 1086 - Warning: discarding unexpected </li>
15-
line 7 column 1 - Warning: discarding unexpected </body>
16-
line 8 column 1 - Warning: discarding unexpected </html>
17-
line 6 column 319 - Warning: missing </ul>
1813
Info: Document content looks like HTML5
19-
Tidy found 16 warnings and 0 errors!
14+
Tidy found 12 warnings and 0 errors!
2015

2116
About HTML Tidy: https://github.com/htacg/tidy-html5
2217
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1410061b.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
<title>1410061 - issue 1 inferred ul</title>
55

66
<style type="text/css">
7-
span.c2 {font-size: 200%}
8-
ul.c1 {padding-left: 2ex; margin-left: 0ex; margin-top: 0ex; margin-bottom: 0ex}
7+
span.c1 {font-size: 200%}
98
</style>
109
</head>
1110
<body>
12-
<b><span class="c2">In bold</span></b>
13-
<ul class="c1">
14-
<li><span class="c2">Not in bold</span></li>
15-
<li><span class="c2">With font size 6</span></li>
16-
<li><span class="c2">But should NOT be indented</span></li>
17-
</ul>
11+
<b><span class="c1">In bold</span></b>
12+
<li><span class="c1">Not in bold</span></li>
13+
<li><span class="c1">With font size 6</span></li>
14+
<li><span class="c1">But should NOT be indented</span></li>
1815
</body>
1916
</html>

cases/testbase-expects/case-1410061b.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 6 column 4 - Warning: replacing unexpected b with </b>
33
line 6 column 30 - Warning: inserting implicit <font>
44
line 6 column 30 - Warning: missing </font> before <li>
5-
line 7 column 1 - Warning: <li> isn't allowed in <body> elements
6-
line 5 column 1 - Info: <body> previously mentioned
7-
line 7 column 1 - Warning: inserting implicit <ul>
85
line 7 column 5 - Warning: inserting implicit <font>
96
line 8 column 5 - Warning: inserting implicit <font>
107
line 9 column 5 - Warning: inserting implicit <font>
11-
line 10 column 1 - Warning: discarding unexpected </body>
12-
line 11 column 1 - Warning: discarding unexpected </html>
13-
line 7 column 1 - Warning: missing </ul>
148
line 6 column 30 - Warning: trimming empty <font>
159
Info: Document content looks like HTML5
16-
Tidy found 13 warnings and 0 errors!
10+
Tidy found 8 warnings and 0 errors!
1711

1812
You are recommended to use CSS to specify the font and
1913
properties such as its size and color. This will reduce

cases/testbase-expects/case-1423252.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
<dl>
99
<dt><font color="red">b</font></dt>
1010
</dl>
11-
<dl>
1211
<dt><font color="red">c</font></dt>
13-
</dl>
1412
</body>
1513
</html>

cases/testbase-expects/case-1423252.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
line 7 column 1 - Warning: missing </font> before <dl>
22
line 8 column 5 - Warning: missing <dt>
33
line 8 column 6 - Warning: inserting implicit <font>
4-
line 9 column 1 - Warning: <dt> isn't allowed in <body> elements
5-
line 6 column 1 - Info: <body> previously mentioned
6-
line 9 column 1 - Warning: inserting implicit <dl>
74
line 9 column 5 - Warning: inserting implicit <font>
8-
line 10 column 1 - Warning: discarding unexpected </body>
9-
line 11 column 1 - Warning: missing <dt>
10-
line 11 column 1 - Warning: inserting implicit <font>
11-
line 11 column 1 - Warning: discarding unexpected </html>
12-
line 9 column 1 - Warning: missing </dl>
13-
line 11 column 1 - Warning: trimming empty <font>
14-
line 11 column 1 - Warning: trimming empty <dt>
155
Info: Doctype given is "-//W3C//DTD HTML 4.01//EN"
166
Info: Document content looks like HTML 4.01 Transitional
177
Info: No system identifier in emitted doctype
18-
Tidy found 13 warnings and 0 errors!
8+
Tidy found 4 warnings and 0 errors!
199

2010
You are recommended to use CSS to specify the font and
2111
properties such as its size and color. This will reduce

cases/testbase-expects/case-1503897.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
<html>
33
<head>
44
<title>1503897</title>
5-
</head>
6-
<body>
7-
<pre>
5+
</head>\n");
6+
<pre>
87
PrintString("</pre>\n");
8+
<body>
99
<pre>
10-
PrintString("</pre>\n");
11-
<table>
12-
<tr>
13-
<td></td>
14-
</tr>
15-
</table>
10+
PrintString("</pre>
11+
<tr>
12+
<td></td>
13+
</tr>
1614
</body>
1715
</html>

cases/testbase-expects/case-1503897.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
22
line 7 column 15 - Warning: discarding unexpected </td>
33
line 6 column 1 - Warning: missing </pre> before <tr>
4-
line 7 column 20 - Warning: <tr> isn't allowed in <body> elements
5-
line 5 column 1 - Info: <body> previously mentioned
6-
line 7 column 20 - Warning: inserting implicit <table>
74
line 7 column 24 - Warning: plain text isn't allowed in <tr> elements
85
line 7 column 20 - Info: <tr> previously mentioned
96
line 8 column 1 - Warning: discarding unexpected </pre>
@@ -14,10 +11,9 @@ line 10 column 20 - Warning: missing <td>
1411
line 10 column 24 - Warning: plain text isn't allowed in <tr> elements
1512
line 10 column 20 - Info: <tr> previously mentioned
1613
line 11 column 1 - Warning: discarding unexpected </pre>
17-
line 7 column 20 - Warning: missing </table> before </body>
1814
line 10 column 20 - Warning: trimming empty <tr>
1915
Info: Document content looks like HTML5
20-
Tidy found 14 warnings and 0 errors!
16+
Tidy found 11 warnings and 0 errors!
2117

2218
About HTML Tidy: https://github.com/htacg/tidy-html5
2319
Bug reports and comments: https://github.com/htacg/tidy-html5/issues

cases/testbase-expects/case-1603538a.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
<html xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<title></title>
5-
<style type="text/css">
6-
/*<![CDATA[*/
7-
li.c1 {list-style: none; display: inline}
8-
/*]]>*/
9-
</style>
105
</head>
116
<body>
127
<ul>
138
<li>
149
<a href="/oldcrap/013747.html">1111</a>
1510
</li>
16-
<li class="c1">
17-
<hr />
18-
</li>
11+
<hr />
1912
</ul>
2013
</body>
2114
</html>

0 commit comments

Comments
 (0)