Michael Piefel wrote:
How is this substantially different from #119193?

the suggested solution for bug 119193 is to move away from using magic for html detection, since it involves some hairy comment issue. this appears to have proven humanly difficult, since the bug remains open since it was reported -- some 3.5 years ago.

this bug appears much closer related to another doctype case sensitivity issue (fixed bug #193296).

i'm suggesting a one line change from:

0   string/cB   \<!DOCTYPE\ html        HTML document text

to:

0   string/cB   \<!doctype\ html        HTML document text

which should make the doctype case insensitive.


Furthermore, fileâs answer is correct - it is SGML.

yes, but it's not as "correct" as it could be.


I have yet to see a W3C
recommendation where DOCTYPE and CDATA were not written in capitals.

me neither.


Or a DTD where the SGML keywords were not written in capitals.

i'm uncomfortable with following a dtd style convention in lieu of a more definitive answer. with some more digging i've found that bert bos reported[1] this as a w3 html validator bug in september 2002. ville skyttà (october 2002), goes on to say:


"the whole doctype declaration *is* case sensitive in XML, whereas in SGML eg. the "DOCTYPE" and "PUBLIC" words are perfectly legal in lowercase."[2]

since this bug is a test for "HTML document text", i think this bug is valid.

- p

1.
Bug: "doctype" in lowercase is not recognized
http://lists.w3.org/Archives/Public/www-validator/2002Sep/0030.html

2.
Bug 24 - HTML::Parser in XML mode doesn't work with lowercase doctypes:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=24

3.
Test case
http://www.w3.org/Style/CSS/learning
http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fwww.w3.org%2FStyle%2FCSS%2Flearning&warnings=yes&input=yes


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



Reply via email to