vigetlabs / ca11y

A lightweight accessible dependency-free datepicker
http://code.viget.com/ca11y
26 stars 6 forks source link

Invalid Input Values #25

Closed cwmanning closed 8 years ago

cwmanning commented 8 years ago

Should the date input default to showing an error state when the input value is not in the YYYY-MM-DD format? I manually entered a value instead of using the picker here:

screen shot 2016-01-11 at 11 26 38 am

https://html.spec.whatwg.org/multipage/infrastructure.html#valid-date-string

solomonhawk commented 8 years ago

After discussing with @greypants, we will opt to leave input validation to userland code and instead set Ca11y to a "no date selected" state whenever there is invalid data coming from the input.

greypants commented 8 years ago

@solomonhawk did you implement the "no date selected", or is that outstanding?