[whatwg] input type="hidden" and validation

Ian Hickson ian at hixie.ch
Wed Oct 22 11:58:06 PDT 2008

On Wed, 22 Oct 2008, Mike Wilson wrote:
> - allowing hidden <input>:s to actually live anywhere (this is
>   probably hard to do dtd/validation-wise)

It's easy to specify, the problem is that it makes it easy for authors to 
get in trouble if they change the type attribute on the fly (e.g. in an 
editor or from script).

It's also not clear why this is necessary -- putting it in the first cell 
of a row, or the next li in an ol, seems trivial.

> - inventing some hidden postable state that is orthogonal to the
>   element structure and thus can be added to any element (maybe 
>   an extended version of the data attributes?)

That seems like a lot of complexity for what is already possible.

> - keeping the whole thing invalid but still define in HTML5 how 
>   the migration of ill-placed <input>:s should work

That is theoretically already defined.

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