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

Misleading (or wrong) messages

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 30 Jul 2003 09:27:10 +0300 (EEST)
To: www-validator@w3.org
Message-ID: <Pine.GSO.4.50.0307300920040.2193-100000@korppi.cs.tut.fi>

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.

There are many other elements that could be used here, such as
FIELDSET or TABLE. The list cannot even be taken as a practical suggestion
on the typical elements to use (and if it were, it should be worded
differently), since surely most of the elements listed are _uncommon_ in
forms - and it would be rather odd to wrap an INPUT element inside a
heading element, as the message seems to be suggesting as one feasible
option! :-)

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Wednesday, 30 July 2003 02:27:12 GMT

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