Package: file
Version:  4.12-1

hi,

an (html) file beginning with a lowercase 'doctype' is identified as "exported SGML document text" rather than "HTML document text":

<!doctype HTML

changing the top element ('HTML') to lowercase has no effect -- same problem:

<!doctype html

i'm not sure what the offical/spec word on doctype case is. google is not giving me much. ville skyttà wrote[1] in a november 2002 email to the www-validator list, saying:

"AFAIK in *SGML* document type declarations, the only case-sensitive part is the public identifier string. [snip] Please prove me wrong, really!"

i can't find reference to anyone proving him/her wrong. the web authoring faq mentions[2] that the public identifier section of the doctype declaration is case sensitive -- but gives no clue about the rest.

if the final word is giving to the validators, then both the w3 and htmlhelp validators are happy with a lowercase doctype[3].

to summarize: only 2 of the common 4 test cases i can think of are passing:

1. <!DOCTYPE HTML (pass)
2. <!DOCTYPE html (pass)

3. <!doctype HTML (fail)
4. <!doctype html (fail)

- p

1.
http://lists.w3.org/Archives/Public/www-validator/2002Nov/0113.html

2.
http://www.htmlhelp.com/faq/html/basics.html#doctype

3.
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
<HTML>
<HEAD><TITLE>test</TITLE></HEAD>
<BODY><H1>test</H1></BODY>
</HTML>



-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to