Proposed doctype handling

This document contains suggestions of how to use the DOCTYPE declaration to determine strict mode vs. quirks mode. See bug 1312 and DetermineParseMode() in nsParser.cpp.

Thanks to Ian Hickson for adding the links to his test pages to this page.

With the checkin of bug 55264 on 2001-09-08, this document is now an accurate description of the way Mozilla determines the mode. It is slightly different from older proposals. See:

Strict Mode

The following should trigger strict mode:

Quirks Mode

The following should trigger quirks mode (this list must be comprehensive):

The following sites have been useful in preparing this list: W3C HTML Validator, HTMLHelp HTML Validator.


Valid HTML 4.0!

(Back to Mozilla, David Baron)

LDB, dbaron@dbaron.org, 2000-01, 2000-05-20, 2001-09-06, 2001-09-08