

Why is "html" forced to lower case in DOCTYPE?

From: J. David Bryan <jdbryan@acm.org>
Date: Fri, 24 Mar 2000 11:47:13 -0600
Message-ID: <OF8FFF767D.FB71A1D6-ON8625688E.001EC604@rfdinc.com>

    Whenever Tidy supplies a corrected DOCTYPE, it produces one such as
lexer.c, the "FindGivenVersion" routine, which is responsible for parsing
the DOCTYPE statement, has this comment at line 769:

  /* but at least ensure the case is correct */

FindGivenVersion then replaces the DOCTYPE string supplied in the source
HTML file with the identical string but containing "html" in lower case.

    Can someone please explain why changing this to lower case is
"correct?"  Thanks.

                                      -- Dave Bryan
Received on Friday, 24 March 2000 13:12:56 GMT
