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
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1H4sgC-0007rT-W5@wiggum.w3.org>

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:27 UTC