W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > August 2010

[Bug 9841] input ="date" should allow pattern="" for national formats (ex: French date is dd/mm/yyyy )

From: <bugzilla@jessica.w3.org>
Date: Sat, 28 Aug 2010 07:39:59 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1OpG19-00085q-3Q@jessica.w3.org>

Xavier Mouton-Dubosc <xaviermd@gmail.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|NEEDSINFO                   |

--- Comment #5 from Xavier Mouton-Dubosc <xaviermd@gmail.com>  2010-08-28 07:39:57 ---
The main problem come from the fact that we may need backward compatibility. If
a website already exists, have a particular date format input in accordance
with the language, but you want to upgrade it to HTML5, the new date format may
be a problem, both for the user, and for adapting the date input.

Let's take an example (this is totally fictional) :
A travel broker in France may need to convert its website, to have html5
control. It already have date inputs, in type="text". And because we are in
France, everyone would type the today date as «28/08/2010».

But if (let's say, the company want to go on the whateverPhone hype) it asks to
a webdesigner to convert it as html5 input, it won't be a easy task for
everyone :
1- the existing code would be broke away in input : it still waiting for a
DD/MM/YYYY format, but instead will get YYYY-MM-DD
2- clients having legacy browsers would have to put date in a format understood
only by accountants and sql-specialists. This second issue is a non-go.
3- Javascript runaround may be problematic, erratic, for any reasons. (By
example, disabled people)

Some CMS, backoffices, extranet, use a kind of datetime in a format like
«28/08/2010 09:33». Any conversion would be problematic if a important part
of the users should convert themselves to «2010-08-28Z09:33:45» (I don't even
think about the TZ aspect of this problem), and the aged source code of these
websites are now terra icognita.

To deploy and popularize HTML5 may be easier.
That's why i think <input type="date" /> and datetime should allow a pattern=""
parameter. The french-date example could be pattern="\d{2}/[01]\d/\d{4}" 

Sorry my bad EN locale.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Saturday, 28 August 2010 07:40:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:21 UTC