[whatwg] input type="hidden" and validation

Ian Hickson ian at hixie.ch
Wed Oct 22 09:04:12 PDT 2008


On Wed, 22 Oct 2008, Oldřich Vetešník wrote:
> 
> 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

I believe in HTML5 that we've allowed <input> in most places, which should 
satisfy your needs. Let us know if it does not. :-)

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list