When tidy recognizes the input as HTML 3.2, it produces the following DOCTYPE declaration in the output:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
According to http://www.w3.org/TR/REC-html32 the DOCTYPE should be as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
This bug can be fixed by swapping a couple of entries in W3C_Doctypes in src/lexer.c so that GetFPIFromVers() finds the correct one first.
Log in to post a comment.