W3C home > Mailing lists > Public > www-validator@w3.org > November 2004

Re: [VE][73] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 20 Nov 2004 21:51:15 +0200 (EET)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0411202148090.9986@korppi.cs.tut.fi>

On Fri, 19 Nov 2004, Nick Kew wrote:

> > Error message:
> >
> >    end tag for "HEAD" which is not finished
> >
> > Suggested addition:
> >
> > This error will occur if the "<title>...</title>" tag is
> > omitted within the "<head>" element.
> The difficulty is that if you put that in for HEAD, it will also appear
> when the same message is generated from another element.  It doesn't
> make sense as an explanation for
>     end tag for "UL" which is not finished
> due to an absence of <li>s in a list!

But doesn't the validator "know" what it expects as required content? How
else could it report the error?

That is, can't the validator report e.g.

end tag for "HEAD" but required subelement "TITLE" was not found

using a suitable error message generation pattern?

If not, I think
  end tag for "HEAD" but a required subelement was not found
would be somewhat better the current one. It's illogical to say "which is
not finished", since the presence of a TITLE element does not finish the
HEAD element.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 20 November 2004 19:51:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:43 UTC