Re: [html5] input type=time & min/max.

On Sat, 19 Sep 2009, Andrew Fedoniouk wrote:
> that defines @min and @max attributes for the <input type=time>
> Question is: If @min happens to be greater than @max:
>    <input type=time min="08:00:00" max="07:59:59" >
> what should be presented to the user?

The control has no value, so no value.

> Shall the whole input be e.g. disabled or it should allow the input anyway?

The spec does not say it should be disabled because of this.

> And yet in such conditions the input will always be unsuccessful.
> What should be sent to the server from such an ill element?

If validation is disabled, then the min and max attributes don't affect 
submission, and the value is submitted.

If validation is enabled, then the form can't be submitted.

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

Received on Saturday, 19 September 2009 20:46:14 UTC