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: Sun, 20 Sep 2009 20:47:03 +0000 (UTC)
To: Lars Gunther <gunther@keryx.se>
Cc: public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0909202038500.5185@hixie.dreamhostps.com>
On Sun, 20 Sep 2009, Lars Gunther wrote:
> 2009-09-19 21:39, Andrew Fedoniouk skrev:
> > 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?
> 
> Would it not be most logical to disable this control? The actual widget would
> not have any available options!
> 
> If it is not disabled and some value CAN be entered but no matter what, it
> will be invalid, I guess users would be quite annoyed!
> 
> What am I missing if disabling is not an option?
> 
> I think the spec should be changed!

The spec already makes it non-conforming for an author to have max less 
than min, so this can only happen in invalid documents anyway.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 20 September 2009 20:41:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:08 UTC