- From: <bugzilla@jessica.w3.org>
- Date: Sat, 28 Aug 2010 08:27:58 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9841 --- Comment #6 from Mounir Lamouri <mounir.lamouri@gmail.com> 2010-08-28 08:27:56 --- (In reply to comment #5) > 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. Your issue is probably not client side. Indeed, it's up to the browser to show a localized date picker. That means, if you are using a french version, the browser should show dates in the french format. However, the DOM will still return the date in the specified way if you call .value. However, your form will no longer send the date in the french format but in the specified one so some changes may be needed server side to be sure the new format is correctly handled. If the server side code is done correctly that should not be a major issue. By the way, using the pattern attribute would not have solve the problem. Considering the pattern attribute has no semantic, where should be put the day, month and year when selected with the date picker? -- 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 08:28:02 UTC