Reputation: 9430
I'm using <input type="date"/>
According to caniuse.com android browser does not support this yet. Although I look at the the page on the HTC One 4.1.x, which has its own native rendering for the input field. Samsung Galaxy S3 4.1.2 has a rendering style for the component as well. Yet caniuse.com says its not supported. HTC and Samsung have clearly added this functionality into their version of android browser. The date picker on the S3 4.1.2 crashes the browser on more than one S3?
Steps to replicate, appears to be more common on first visit of the page:
I'm using Modernizr, Modernizr tests the browser to see its functionality. On the HTCOne and S3 modernizr does not bring in the polyfill i'm using, this is correct.
So IOS works fine, Android does not. How can I get around this without a nasty hack in the modernizer "test:" Attribute?
Thanks, long one to read, but an interesting bug at best.
Mike
Upvotes: 9
Views: 1946
Reputation:
Not all Android systems are the same. Since everything is constantly getting updated, you're bound to get some small deviations like what you're getting. If you want more universal support, try using multiple selects or using the jQuery UI datepicker.
Upvotes: 2