This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25315 - forms: <input type=year>
Summary: forms: <input type=year>
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-10 20:46 UTC by Ian 'Hixie' Hickson
Modified: 2014-09-30 16:52 UTC (History)
3 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2014-04-10 20:46:41 UTC

    
Comment 1 Ian 'Hixie' Hickson 2014-04-10 20:57:55 UTC
http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Apr/0051.html

The main sticking point is what to do with Japanese era years. Quoting mysel from the e-mail above:

"For example, Meiji 45 lasts until July 30th 1912, and Taishō 1 starts then. Without date context, how would such values get round-tripped? If we assume a hypothetical type=year displays Japanese era years in the UI, but transmits Gregorian years over the wire, how do we ensure that the same year comes back?

If round-tripping is important, then this is actually a _different_ input type than Gregorian years.

Presumably, round-tripping is important here. For example, I would presume that the sentence "Emperor Meiji said 'Hello' in Meiji 45" has rather  different connotations than "Emperor Meiji said 'Hello' in Taishō 1"."
Comment 2 Ryosuke Niwa 2014-04-10 21:23:00 UTC
(In reply to Ian 'Hixie' Hickson from comment #1)
> http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Apr/0051.html
> 
> The main sticking point is what to do with Japanese era years. Quoting mysel
> from the e-mail above:
> 
> "For example, Meiji 45 lasts until July 30th 1912, and Taishō 1 starts then.
> Without date context, how would such values get round-tripped? If we assume
> a hypothetical type=year displays Japanese era years in the UI, but
> transmits Gregorian years over the wire, how do we ensure that the same year
> comes back?

That's a good point.

> Presumably, round-tripping is important here. For example, I would presume
> that the sentence "Emperor Meiji said 'Hello' in Meiji 45" has rather 
> different connotations than "Emperor Meiji said 'Hello' in Taishō 1"."

That is correct. For example, my brother was born in Heisei 1, which indicates that his birthday is on or after January 8th, 1989.  But more importantly, if someone was born in Showa 64, then it signifies that he or she was born between January 1st, 1989 and January 7th, 1989.
Comment 3 Ian 'Hixie' Hickson 2014-04-10 22:17:35 UTC
That pretty much kills the idea of having an <input type=year>, then. Bummer.
Comment 4 Ian 'Hixie' Hickson 2014-09-30 16:52:49 UTC
Given the issues described above, I think it would make sense to have a Japanese Year input type, maybe, but I'm struggling to see much point in an arbitrary "year" input type.