2012-08-02 4:11, Philippe Wittenbergh wrote:

Le 2 août 2012 à 06:03, Josh Rehman a écrit :

And, actually the uppercase DOCTYPE is important as
I've run into problems with the lowercase version in some browsers.

That sounds weird. Can you clarify which browsers are affected ?

By XML rules, the doctype declaration, if present, must have "DOCTYPE" in uppercase. This also applies by XHTML rules, of course. An XHTML document served as application/xhtml+xml will be rejected by a conforming browser, if some other spelling for "DOCTYPE is used. Rejection means that the browser only displays an error message about syntax error and does not display the document content at all.

Otherwise, in classic HTML, and even in XHTML when served as text/html, the string "DOCTYPE" is completely case-insensitive. Any spelling in e.g. <!doctype html> is OK for avoiding Quirks Mode.

Yucca


______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to