Re: [Fwd: MobileOK Validator Issues]

Le dimanche 09 mars 2008 à 15:41 -0400, Sean Owen a écrit :
> But yes, interesting, I see this message when parsing and HTML 4 doc:
> 
> [Fatal Error] strict.dtd:81:5: The declaration for the entity
> "ContentType" must end with '>'.
> 
> Xerces doesn't like it, and indeed the DTD is a little weird:

The thing is that Xerces is only considering XML DTDs, while HTML 4.x
(and previous versions) is based on SGML DTDs, which have more options
and a slightly different syntax.

In general, this explains much of the errors reported... While I think
it would be fine not to report the detailed errors for non-XML DTDs, I
think we ought not to say that a page in invalid when it is, and I'm not
clear how to do that barring including an SGML-validator... (or asking
results from the W3C Markup Validator, but which require an online
presence).

Dom

Received on Sunday, 9 March 2008 22:07:07 UTC