does HTML5 element allow the user to scroll dates to an invalid date, for ...">

HTML5 date input accepts invalid dates?

Why <input type="date">

does HTML5 element allow the user to scroll dates to an invalid date, for example 31 September 2014

?

DEMO: http://jsfiddle.net/oztjryx4/1/

Why does Chrome allow this? How to check if a date is invalid or does not exist?

+3


source to share


1 answer


You can spot such invalid dates with input.validity.badInput. According to http://crbug.com/231811 the reason is simple.



+5


source







All Articles