Added test case for #839.
This commit is contained in:
parent
cf43bd3448
commit
ad8cae97bd
12
regression_testing/cases/github-cases/case-839@1.html
Executable file
12
regression_testing/cases/github-cases/case-839@1.html
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
<!--
|
||||||
|
This test case represents HTML Tidy issue #839, which describes
|
||||||
|
a descrepancy between tidy's behavior and the W3C Nu HTML
|
||||||
|
checker behavior. Tidy has historically allowed empty <title>
|
||||||
|
elements, but this is not allowed by HTML5, and is flagged by
|
||||||
|
the Nu checker. Because a <title> is required by HTML5, it
|
||||||
|
would be even worse for HTML Tidy to remove this element, and
|
||||||
|
so Tidy will now provide a warning if the title element is
|
||||||
|
empty. It is assumed the HTML author will add a title as well
|
||||||
|
as addressing other warnings.
|
||||||
|
-->
|
||||||
|
<!DOCTYPE html><title></title>
|
19
regression_testing/cases/github-expects/case-839.html
Normal file
19
regression_testing/cases/github-expects/case-839.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<!--
|
||||||
|
This test case represents HTML Tidy issue #839, which describes
|
||||||
|
a descrepancy between tidy's behavior and the W3C Nu HTML
|
||||||
|
checker behavior. Tidy has historically allowed empty <title>
|
||||||
|
elements, but this is not allowed by HTML5, and is flagged by
|
||||||
|
the Nu checker. Because a <title> is required by HTML5, it
|
||||||
|
would be even worse for HTML Tidy to remove this element, and
|
||||||
|
so Tidy will now provide a warning if the title element is
|
||||||
|
empty. It is assumed the HTML author will add a title as well
|
||||||
|
as addressing other warnings.
|
||||||
|
-->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
14
regression_testing/cases/github-expects/case-839.txt
Normal file
14
regression_testing/cases/github-expects/case-839.txt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
line 12 column 16 - Warning: blank 'title' element
|
||||||
|
Info: Document content looks like HTML5
|
||||||
|
Tidy found 1 warning and 0 errors!
|
||||||
|
|
||||||
|
About HTML Tidy: https://github.com/htacg/tidy-html5
|
||||||
|
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
|
||||||
|
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
|
||||||
|
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
|
||||||
|
Validate your HTML documents: http://validator.w3.org/nu/
|
||||||
|
Lobby your company to join the W3C: http://www.w3.org/Consortium
|
||||||
|
|
||||||
|
Do you speak a language other than English, or a different variant of
|
||||||
|
English? Consider helping us to localize HTML Tidy. For details please see
|
||||||
|
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md
|
Loading…
Reference in a new issue