Re: set_parse_mode() and triggering W08

On 7/29/07, olivier Thereaux <ot@w3.org> wrote:
> Hello,
>
> On Jul 27, 2007, at 05:45 , Nikita The Spider The Spider wrote:
> >
> > I'm trying to understand the conditions under which the validator will
> > generate certain warnings. The function set_parse_mode() in check can
> > trigger warnings W06 and W08 which are similar. I can trigger W06 by
> > validating a document that meets these conditions:
> > - Mime type = text/html
> > - Doctype either absent or FPI not in the validator's catalog
> > - No XML declaration.
> >
> > Looking at the check script, I *thought* this would trigger W08 via
> > the test on line 1979.
>
> Indeed, it looks like a bug in that test. However, the fact is that
> W06 now "includes" W08 in a way, and has a better explanation. Taking
> a bit of distance from the code, I can't really find a reason to keep
> W08 any longer, do you?
>
> http://dev.w3.org/cvsweb/validator/share/templates/en_US/warnings.tmpl

Thanks for the sanity check. I agree with you; having both is
unnecessary and W06 is the better of the two. Even if I'm wrong and
W08 can get triggered somehow (via direct input mode, for instance)
then it should be replaced with W06.

-- 
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more

Received on Monday, 30 July 2007 12:27:30 UTC