W3C home > Mailing lists > Public > www-validator@w3.org > August 2003

Re: Misleading (or wrong) messages

From: Terje Bless <link@pobox.com>
Date: Wed, 27 Aug 2003 12:58:57 +0200
To: W3C Validator <www-validator@w3.org>
Cc: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Message-ID: <f02000101-1026-7559688FD87D11D79CB50030657B83E8@[193.157.66.23]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jukka K. Korpela <jkorpela@cs.tut.fi> wrote:

>If I validate a document against HTML 4.01 doctype and the document
>contains a form where input elements are not wrapped into block-level
>containers (try just <form action=""><input></form>), I get the message
>
>document type does not allow element "INPUT" here; missing one of "P",
>"H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
>
>This is at least seriously misleading, if not simply wrong.

Yeah, this one ranks pretty high up there on the list of bloody stupid error
messages we emit. It's what OpenSP spits out and it gets to be that stupid for
two reasons: 1) It is infering the elements to suggest based on what would be
valid at that point in the document, and 2) it has a fixed length parameter
list that is mostly eaten up by h1-h6.

We /could/ have fixed this by hacking OpenSP to emit a more sane error message
(e.g. by making the parameter list be dynamic and longer), but I think the
better option is to deal with this along with all the other bad error
messages. You'll see the beginnings of that process in the next beta (Real
Soon Now[tm] etc.) and I'm currently hoping to get something more or less
comprehensive in place for 0.7.0 (which I hope will be this year, but don't
quote me on that).

- -- 
Ladies and gentlemen, you must resist those all-too-human feelings and decide
this case on the evidence.    And the evidence plainly shows that Mr. Landa's
injuries,   disfiguring as they are,  are nowhere near as important to a free
society as the fundamental right to make smart-ass remarks.   -- Katie @ AtAT

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.0.2

iQA/AwUBP0yO8KPyPrIkdfXsEQIM9ACePnK6VfPVQVBJu5vYJhn7j84RYrwAoM8q
miCWehKHFGtNcKVxmHnzgS6R
=hUPn
-----END PGP SIGNATURE-----
Received on Wednesday, 27 August 2003 07:02:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:09 GMT