[WSG] HTML5 input type=date / and you

2012-07-01 Thread James Ducker
Hi all, I just got a little burned by Chrome's new date popup for HTML date-type inputs! *Why?* - Because when I wrote the original code, I hadn't read up on the new properties being added to HTML5 input types - Because I was using a js-based datepicker plugin to implement the same

Re: [WSG] HTML5 input type=date / and you

2012-07-01 Thread Patrick H. Lauke
On 02/07/2012 01:55, James Ducker wrote: element.valueAsDate This property is designed to solve your locale woes, and it is also an easy way to feature-detect a browser's native support for the date input type. I haven't gone through all current browsers yet, so if you do use this method, make

Re: [WSG] HTML5 input type=date / and you

2012-07-01 Thread James Ducker
The only issue I've found so far is that Safari's implementation of the date type sucks. It gives you little up/down chevrons which add or subtract one day at a time. So my working code also treats Safari as datepicker-not-implemented. For me, as I make use of the valueAsDate property when it's

Re: [WSG] HTML5 input type=date / and you

2012-07-01 Thread Teddy Knoy
These e-mails aren't intended for me, but I keep receiving them. Ted Knoy On Mon, Jul 2, 2012 at 9:57 AM, James Ducker james.duc...@gmail.com wrote: The only issue I've found so far is that Safari's implementation of the date type sucks. It gives you little up/down chevrons which add or