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

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 19 Sep 2009 12:39:05 -0700
Message-ID: <4AB53359.2030503@terrainformatica.com>
To: public-html <public-html@w3.org>
Reading:

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?

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

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

"If an element has a maximum that is less than its minimum, then so long 
as the element has a value, it will either be suffering from an 
underflow or suffering from an overflow."
(http://dev.w3.org/html5/spec/Overview.html#attr-input-max)


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Saturday, 19 September 2009 19:39:47 GMT

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