[Bug 24] HTML::Parser in XML mode doesn't work with lowercase doctypes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=24





------- Comment #13 from zcorpan@hotmail.com  2007-01-11 05:40 -------
(In reply to comment #10)
> > This would however have
> > an effect on the CGI "API" (think 3rd party tools 
> > submitting docs to the validator).
> 
> True. That means we need a default for the direct input mode.

I think in the absence of media type information, the validator should either
(1) force the user to choose one before performing validation, or (2) first
issue a warning about lack of media type information and then check if the
character stream begins with (ignoring BOM) "<?xml", and, if so, use XML mode,
otherwise SGML mode. In case of (2) the user should be able to change the mode
and revalidate.

In either case it should not just say "This is valid X!" without warnings in
the case of absent media type information, because it might not be true.

Received on Thursday, 11 January 2007 05:40:57 UTC