<?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>26119</bug_id>
          
          <creation_ts>2014-06-17 16:24:56 +0000</creation_ts>
          <short_desc>An upper limit to the length of a year should be specified.</short_desc>
          <delta_ts>2016-04-27 18:15:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Sheehan">ssheehan</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>travil</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>107946</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Sheehan">ssheehan</who>
    <bug_when>2014-06-17 16:24:56 +0000</bug_when>
    <thetext>The text for parsing a year in &lt;input type=&quot;date&quot;&gt; says a year should be of the form: &quot;Four or more ASCII digits, representing year, where year &gt; 0&quot;

This should probably have a reasonable upper limit on the length of the year. I suggest this be exactly four ASCII digits.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107947</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-06-17 16:27:28 +0000</bug_when>
    <thetext>That doesn&apos;t seem very future-compatible...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107995</commentid>
    <comment_count>2</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2014-06-18 10:26:14 +0000</bug_when>
    <thetext>Does Date (JS) has an upper limit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108000</commentid>
    <comment_count>3</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2014-06-18 11:46:50 +0000</bug_when>
    <thetext>FWIW ISO 8601 supports years beyond 9999 (though somewhat shakily). Obviously, I&apos;d expect real-world date parsers to regularly fail on those.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108006</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-06-18 14:05:31 +0000</bug_when>
    <thetext>&gt; Does Date (JS) has an upper limit?

Sort of.  It has the limit that only dates whose numeric value is &lt; 1e8 days (so about 273000 years from 1970) are representable.

It also defines the string format as YYYY-MM-DDTHH:mm:ss.sssZ, based on ISO8601, but also defines a string format for years past that point.  See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-extended-years

  new Date(4.32e15).toISOString()

seems to work in UAs, modulo https://bugzilla.mozilla.org/show_bug.cgi?id=730831 in Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108481</commentid>
    <comment_count>5</comment_count>
    <who name="Mounir Lamouri">mounir</who>
    <bug_when>2014-06-30 10:06:12 +0000</bug_when>
    <thetext>Would that make sense to say that the year&apos;s upper-limit for &lt;input type=&apos;date&apos;&gt; should match the one in JS&apos; Date?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126215</commentid>
    <comment_count>6</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2016-04-27 18:15:20 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Works for me

I&apos;m guessing that by the time we need to worry about extending the year&apos;s date to anything beyond 4 digits, we&apos;ll be using some other time measurement system (Galactic time?)

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>