W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2013

Re: [whatwg] Why do we have <input type='month'> and <input type='week'>?

From: Charles McCathie Nevile <chaals@yandex-team.ru>
Date: Thu, 31 Jan 2013 13:37:58 +0100
To: "Mounir Lamouri" <mounir@lamouri.fr>, "Anne van Kesteren" <annevk@annevk.nl>
Message-ID: <op.wrrz1kuly3oazb@chaals.local>
Cc: whatwg@lists.whatwg.org
On Thu, 31 Jan 2013 12:40:50 +0100, Anne van Kesteren <annevk@annevk.nl>  

> On Wed, Jan 30, 2013 at 9:55 PM, Mounir Lamouri <mounir@lamouri.fr>  
> wrote:
>> Regarding 'month', I mostly don't understand the use case. I can't find
>> any situation where I am asked to input a { month, year } information.
> Credit cards.

This is the most obvious common use case. If the world keeps using  
non-gregorian calendars for significant things (e.g. Ramadan) and we  
evolve to support those, there are further use cases.

>> This type would solve the use cases of people trying to find a week to
>> meet.
> I think it was for tax forms, though I have not encountered one myself.

Calendar control widgets. All the calendar apps I have used offer "week at  
a glance" views, and most of the offer "month-at-a-glance" too. Selecting  
the relevant week or month is one of the most basic controls.

Curricula for courses are often described in terms of weeks.

Various other things too. Weeks are pretty clearly wired into the way we  
work, and are *roughly* aligned across most of the world - probably more  
so than months or years.

There are many countries where people talk about "week 27" as a normal  
expression of time. I find it unnatural. It is a widespread but far from  
universal use case, that I think it is reasonable to support.



Charles McCathie Nevile - Consultant (web standards) CTO Office, Yandex
       chaals@yandex-team.ru         Find more at http://yandex.com
Received on Thursday, 31 January 2013 12:38:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC