W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] input type="hidden" and validation

From: Mike Wilson <mikewse@hotmail.com>
Date: Wed, 22 Oct 2008 19:33:28 +0200
Message-ID: <BAY116-DAV11B23AA00881D2BEE36F47A4290@phx.gbl>
I suggested the same thing a week ago:
with replies here:

The short answer is that for some elements (eg FORM) this is already solved
in HTML5, but for other elements (eg TABLE) it is not, and the responses
were not too positive about changing that.

Best regards
Mike Wilson

> -----Original Message-----
> From: whatwg-bounces at lists.whatwg.org
> [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Oldrich Vete?n?k
> Sent: den 22 oktober 2008 17:42
> To: whatwg at whatwg.org
> Subject: [whatwg] input type="hidden" and validation
> Hello,
> I'd like to throw a question out here, please don't shoot me
> if it's been 
> already answered, I'm a full-time coder and don't have an
> internet at home 
> so I can't make any deep researches in your archives.
> Q: Is it possible that hidden inputs don't have to be in a
> semantic tag? 
> That is it passes the validation test without showing this error up:
> line 20 column 32 - Error: document type does not allow
> element "input" 
> here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", 
> "pre", "address", "fieldset", "ins", "del" start-tag
> It's because hidden inputs aren't meant to be shown to the
> front-end user 
> so it doesn't mean if it's not covered in a semantic tag.
> Sometimes it's 
> O.K., you have a form with a few fieldsets so you can put it
> in one, but 
> sometimes it's rather stupid having to do <div><input type="hidden" 
> name="somename" value="somevalue" /></div> just to silence
> the validator.
> Thank you,
> Ollie
Received on Wednesday, 22 October 2008 10:33:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC