I just checked in (on the trunk) some changes to the DOCTYPE handling
code.  (They should be in any builds after, but not including,
2001-09-08-14.)  The purpose of these changes is to make our DOCTYPE
handling forward-compatible.  The old code generally used a list of
known patterns in DOCTYPE declarations to determine that a page should
be displayed using strict mode, and otherwise used quirks mode.  The new
code uses the presence of one of a set of known public identifiers, or
the lack of a DOCTYPE declaration, to determine that a page should be
displayed using quirks mode, and otherwise uses strict mode.

These changes are not intended to change the mode that is used for
DOCTYPE declarations in common use on the Web (except in a few known
cases where the lack of future-compatibility had already become a lack
of present-compatibility).  However, since the new code is based on a
list of known DOCTYPE declarations that should trigger quirks mode,
there are probably a few that we need in the list that were omitted.
This means that the changes will probably cause a few regressions.

If you notice any regressions in the layout of sites in builds starting
this weekend that may be related to this change, please let me know, so
that I can add the necessary public identifiers to the list (in
nsParser.cpp) or make other tweaks, if necessary.

-David

-- 
L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >
Mozilla Contributor                      <URL: http://www.mozilla.org/ >
Invited Expert, W3C CSS WG          <URL: http://www.w3.org/Style/CSS/ >

Reply via email to