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.

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 David Baron)

LDB, dbaron@dbaron.org