<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7688</bug_id>
          
          <creation_ts>2009-09-21 17:20:52 +0000</creation_ts>
          <short_desc>&apos;input type=time&apos; forbids legitimate use case</short_desc>
          <delta_ts>2013-10-01 22:57:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-min-and-max-attributes</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2013 Q4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Amengual">listas</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27414</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Amengual">listas</who>
    <bug_when>2009-09-21 17:20:52 +0000</bug_when>
    <thetext>input type=time has the &apos;max&apos; and &apos;min&apos; attributes to check the value range. And &apos;min&apos; is mandated to be lesser than &apos;max&apos;. For example,

&lt;input type=&quot;time&quot; min=&quot;23:00:00&quot; max=&quot;01:00:00&quot;&gt;

would be considered non-conformant (see http://lists.w3.org/Archives/Public/public-html/2009Sep/0832.html).

However, a time of 23:00:00 is not always later than 01:00:00. For night times, it makes perfect sense to allow times between 23h and 01h.

I suggest to add something like &quot;When min is greater than max, UAs will assume it to be a valid midnight-crossing interval&quot;, after the description of the min and max attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27790</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-29 07:53:34 +0000</bug_when>
    <thetext>Interesting feature request.

I haven&apos;t added this at this time, because doing so is actually a pretty major change to the spec (it&apos;d involve a refactoring of the way min=&quot;&quot; and max=&quot;&quot; are implemented, as well as some changes to validation, step=&quot;&quot;, and other aspects of the spec), but I&apos;ve noted it as a feature for a future version. It definitely seems like something that would be reasonably added in the future, and I don&apos;t see why we couldn&apos;t add it later (it&apos;s a backwards-compatible change as far as I can tell).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27791</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-09-29 07:55:12 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r4034.
Check-in comment: Note the idea of &lt;input type=time&gt; having an allowed range crossing midnight.
http://html5.org/tools/web-apps-tracker?from=4033&amp;to=4034
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27881</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Amengual">listas</who>
    <bug_when>2009-09-29 16:43:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I don&apos;t see why we couldn&apos;t add it later (it&apos;s a backwards-compatible
&gt; change as far as I can tell).

Not sure. If the proposed change cannot be done at this time, perhaps adding something like &quot;authors should note that setting min&gt;max on a form field is not a valid way to alter form behaviour&quot; could make sense, to avoid misuses that could break with future changes.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27891</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-29 22:40:32 +0000</bug_when>
    <thetext>The spec currently says:

&quot;The max attribute&apos;s value (the maximum) must not be less than the min attribute&apos;s value (its minimum).

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.&quot;

...so validators will flag this as an error for now, which should help with your concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33484</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 14:51:32 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
  http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35140</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Amengual">listas</who>
    <bug_when>2010-04-19 10:33:36 +0000</bug_when>
    <thetext>I did not receive any email with the text in comment #5, so could not reply in time.

This bug has the status of VERIFIED/LATER, hope this means that the &quot;no longer a pending comment&quot; policy does not apply. At least, not in the sense that it won&apos;t be considered in the future, as the current behaviour in the spec breaks POLA: for example, you can filter between 22 and 23 hours, but not the next hour between 23 and 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82019</commentid>
    <comment_count>7</comment_count>
    <who name="">public-rdfa-wg</who>
    <bug_when>2013-01-24 06:27:43 +0000</bug_when>
    <thetext>This bug was cloned to create HTML WG bug 19064.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94123</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-10-01 22:57:21 +0000</bug_when>
    <thetext>Ok, I added this. It ended up being a little simpler to add than I expected, once I&apos;d figured out how to limit the impact appropriately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94124</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-10-01 22:57:37 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8203.
Check-in comment: Allow type=time to have min&gt;max, so that times can span midnight.
http://html5.org/tools/web-apps-tracker?from=8202&amp;to=8203</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>