W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

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

From: J. David Bryan <jdbryan@acm.org>
Date: Wed, 23 Feb 2000 00:35:13 -0500
Message-Id: <200002230535.AAA11132@mail.bcpl.net>
To: HTML Tidy List <html-tidy@w3.org>
    Whenever Tidy supplies a corrected DOCTYPE, it produces one such as 
"!DOCTYPE html PUBLIC...", i.e., with the "html" in lower case.  In 
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 Wednesday, 23 February 2000 00:35:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT