Matthias Gutfeldt <say-no-to-> wrote:
>> I'm pretty sure this will trigger "bug compatible" (aka. "quirks")
>> mode in current bwowsers.
>
> It depends. If you advertise the fact that it's your own DTD in the
> Doctype Declaration, it might trigger Standard mode, since any
> unrecognized Doctype triggers "Standard" mode, at least according
> to the browser documentation and my own tests:
> <http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html>
Excuse me while I get mad.
And sorry for making guesses on the basis of what would have made at
least _some_ sense, instead of checking what bwowser vendors actually
did. Incidentally, it seems that your article is blank (white) for
Netscape 6 as regards to the mode when an "unrecognized" doctype is
used - at least Netscape 7.1 seems to follow the crowd, in doing just
the absurd thing: if I declare a doctype in a manner that definitely
violates HTML specifications (even if I in fact thereby refer to a DTD
that is a verbatim copy of a DTD listed in a specification), the
doctype sniffer decides to switch to "standards" mode.
> So one would either have to use a W3C HTML Doctype (which might be
> seen as 'lying'), or with a bit of care create a custom Doctype
> Declaration that isn't recognized as "unknown".
Quite interesting options, are they not? So the logical conclusion is
that the need for declaring a doctype (when you actually want "quirks"
mode) is nonexistent, except if company police requires it. After all,
the doctype has two effective meanings:
a. For SGML validators, as well as some of their imitations, the
doctype declaration is a way of expressing the intended syntax
in a manner that allows automatic verification. But the author
can of course submit a modified copy, which contains a suitable
doctype.
b. Browsers play their games, in different ways, modifying the rules
of the game in a Calvinball-like manner. But if quirks mode is what
you want, omission of any doctype seems to be the best method
(at present at least).
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html