1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
7
Running Tidy on this file produces the diagnostic:
9
Doctype given is "-//W3C//DTD HTML 3.2//EN"
11
...when clearly the DOCTYPE is not as shown. Problem appears to be that
12
doctype is "fixed" in FixDocType before it is reported in ReportVersion.
13
See "tidy.c" lines 1001, 1016.
17
The DOCTYPE that appears in the file should be reported in the "Doctype
21
tidy -e bug-2000-12-27-a.html
30
<title>Bug-2000-12-27-A [ #431883 ] Given doctype reported incorrectly</title>
37
If you use a plain table tag, tidy complains about
38
no summary attribute and demotes the version to 3.2
43
If you add a summary attribute to the table tag,
44
tidy identifies the doc as 4.01 transitional.
46
<table summary="Tidy reports this as 3.2, not 4.0">