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.

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)