W3C home > Mailing lists > Public > www-validator@w3.org > July 2006

"Unknown Parse Mode!" when validating with DOCTYPE chosen to force STRICT mode in Mozilla

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Wed, 12 Jul 2006 16:04:04 +0100
Message-ID: <44B50F64.1040009@Rhul.Ac.Uk>
To: www-validator@w3.org

Following the advice/guidance from L David Baron at :

	http://developer.mozilla.org/en/docs/Mozilla%27s_DOCTYPE_sniffing

my recent Dreamweaver templates have all used the following DOCTYPE :

	<!DOCTYPE html SYSTEM "http://www.w3.org/TR/html4/loose.dtd">

which is intended to force Mozilla into "Full Standards" mode,
since we wish to avoid accidentally exploiting any of Mozilla's
"Almost Standards" behaviours.

Until recently this caused no problems, but on re-validating
today I received the following diagnostic :

> Unknown Parse Mode!
> 
> The MIME Media Type (text/html) for this document is used 
 > to serve both SGML and XML based documents, and it is not
 > possible to disambiguate it based on the DOCTYPE Declaration
 > in your document. Parsing will continue in SGML mode.

I do not recollect seeing this diagnostic earlier in the development
cycle, and I do not believe it would be helpful for my webmasters
to see this when validating their pages.  Short of reverting to
Mozilla's "Almost Standards" mode by using a PUBLIC declaration
as opposed to a SYSTEM, is there any other way of explaining to
the validator that we do, please, want SGML rather than XML-mode
parsing ?

Philip Taylor, RHBNC.
--------
"Loose" is unfortunately needed because a co-developer
is still using some older-style element/attribute pairs
(<div align="...">, for example).
Received on Wednesday, 12 July 2006 15:04:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT