Do not mess with <!doctype html>. Fixes #2.

This commit is contained in:
Michael[tm] Smith 2012-02-10 15:33:21 +09:00
parent 33ba8038fd
commit b26db41c86

View file

@ -119,6 +119,10 @@ int TY_(HTMLVersion)(TidyDocImpl* doc)
!cfgBool(doc, TidyHtmlOut);
Bool html4 = dtmode == TidyDoctypeStrict || dtmode == TidyDoctypeLoose || VERS_FROM40 & dtver;
// don't mess with <!doctype html>
if (HT50) return HT50;
if (XH50) return XH50;
for (i = 0; W3C_Doctypes[i].name; ++i)
{
if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||