tidy-html5/regression_testing/cases/github-cases/case-119b@2.html

34 lines
1.1 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<title>Issue #119 - Test HTML4, custom-tags: no</title>
<body>
<h1>About this case</h1>
<p>
This test case ensures that Tidy handles autonomous custom tags appropriately
for pre-HTML5 documents. Tidy will support them via the <kbd>custom-tags</kbd>
option, even though such documents do not support such tags.
</p>
<p>
In this case, <kbd>custom-tags</kbd> is <strong>no</strong>, and so Tidy should
report unknown tags. We will use <kbd>force-output</kbd> to ensure that a
document is generated, and to gather additional warning output.
</p>
<pizzerias>
This is a user-defined tag, and Tidy should provide a warning, but allow it.
</pizzerias>
<jets-pizza>
This is a user-defined tag, and Tidy should provide a warning, but allow it.
Because <kbd>custom-tags</kbd> is <strong>no</strong>, it's treated like any
other user-defined tag, even though it looks like an autonomous custom tag.
</jets-pizza>
<dominos-pizza>
This is an autonomous custom tag, but it's not supported in this test case.
It should be rejected and cause an error.
</dominos-pizza>
</body>
</html>