From b26db41c865a21c3e62e59df501c012a3dc05fc1 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Fri, 10 Feb 2012 15:33:21 +0900 Subject: [PATCH] Do not mess with . Fixes #2. --- src/lexer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lexer.c b/src/lexer.c index 04a139c..c5b4983 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -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 + if (HT50) return HT50; + if (XH50) return XH50; + for (i = 0; W3C_Doctypes[i].name; ++i) { if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||