W3C home > Mailing lists > Public > public-html@w3.org > September 2009

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

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 19 Sep 2009 20:52:05 +0000 (UTC)
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0909192046590.5185@hixie.dreamhostps.com>
On Sat, 19 Sep 2009, Andrew Fedoniouk wrote:
> 
> http://dev.w3.org/html5/spec/Overview.html#time-state
> 
> 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
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 19 September 2009 20:46:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:48 GMT