Martin Honnen <ma*******@yahoo.de> wrote:
document type does not allow element "INPUT" here; missing one of
"P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS"
start-tag
- - Odd that fieldset isn't mentioned, eh?
Right, the validator should have listed that too.
And a few other elements as well. The content model for FORM in the
Strict version is
(%block;|SCRIPT)+ -(FORM)
and %block is defined by
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
Thus, the "validator" issues an arbitrary sublist of the allowed
elements, in an arbitrary order. I'm using quotation marks here, because
the validator isn't really don't the job of a validator in this
particular issue. A validator must report reportable markup errors; it is
not required to do that in any particular, e.g. optimally understandable,
way. But it's clearly against the spirit to give misleading messages that
strongly suggest that _only_ elements from a particular set would be
allowed. The message given seems to be a fixed string that the
"validator" spits out in certain conditions, even in situations where
you validate against a customized DTD that does _not_ allow the elements
listed in the message as children of FORM!
It's just trying to be helpful in practice. This is how so many
confusions emerge.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html