W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 11 Jan 2007 05:40:48 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1H4sgC-0007rT-W5@wiggum.w3.org>


------- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:20 UTC