Error Message Feedback

I know someone who tried to validate a page with the following doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 10 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

which, it may not be obvious at first glance, is XHTML version TEN:

     "XHTML 10 Strict"

because the decimal point was missing.

The result he got was as follows:

     Result:  	 Failed validation, 0 error
     File:	test.html
     Encoding:	utf-8
     Doctype:	-//W3C//DTD XHTML 10 Strict//EN

     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.

     This page is not Valid -//W3C//DTD XHTML 10 Strict//EN!

which confused him.

Surely it would be better for the validator to simply say "don't 
understand this doctype", when the doctype isn't on a certain list, 
or the doctype portion doesn't match the URI which follows it?

------------------------------------------------------------
                "Have You Validated Your Code?"
John Horner                            (+612 / 02) 8333 3488
Developer, ABC Kids Online            http://www.abc.net.au/
------------------------------------------------------------

Received on Tuesday, 18 October 2005 04:24:30 UTC