W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

Re: Problem - INPUT Type Hidden

From: David Dorward <david@dorward.me.uk>
Date: Fri, 4 Mar 2005 17:13:42 +0000
To: Eduardo Carvalho <eduardocarvalho@ipde.org.br>
Cc: W3C www-validator mailing list <www-validator@w3.org>
Message-ID: <20050304171342.GB22165@us-lot.org>

On Fri, Mar 04, 2005 at 12:19:27PM -0300, Eduardo Carvalho wrote:
>    This return one error message at element "INPUT":
>    "... document type does not allow element "INPUT" here; missing one of
>    "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS"
>    start-tag."
> 
>    But attributes "hidden" should be.

The HTML specification says otherwise.

As an aside - while it might be desirable to allow hidden inputs to
exist without being wrapped in a container that allows inline content,
there is no way in SGML to specify that a type of element may or may
not appear as a child of another depending on the value of one of its
attributes.

-- 
David Dorward                                      http://dorward.me.uk
Received on Friday, 4 March 2005 17:13:44 GMT

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