Invalid Date Entries in HTML5 Date Picker via Keyboard Input

*Dear W3C HTML Working Group,*

I am writing to report a potential bug in the HTML5 <input type="date">
element, specifically concerning manual date entries via keyboard input.

*Issue Description:*

When entering a date manually using the keyboard (e.g., typing "31-02-2025"
or "31-1-2025"), the input field accepts the value without immediate
validation. However, upon form submission or when the input loses focus,
the value is cleared, leaving the input box empty. This behavior is
inconsistent and may lead to user confusion, as the input appears valid
until the form is processed.

*Steps to Reproduce:*

   1.

   Focus on an <input type="date"> field.
   2.

   Manually type an invalid date (e.g., "31-02-2025").
   3.

   Observe that the input accepts the value without error.
   4.

   Submit the form or move focus away from the input field.
   5.

   Notice that the input field becomes empty, indicating the value was not
   accepted.

*Expected Behavior:*

The <input type="date"> element should immediately validate the entered
date and provide feedback if the date is invalid, preventing the user from
submitting a form with an incorrect date.

*Additional Information:*

This issue has been observed across various browsers and platforms. It's
important to note that the <input type="date"> element's behavior may vary
depending on browser implementation and user locale settings. For instance,
some browsers may not trigger validation events when an invalid date is
manually entered, leading to inconsistent user experiences.

*Suggested Action:*

I recommend reviewing the specification and implementation of the <input
type="date"> element to ensure consistent and immediate validation of
manually entered dates. Enhancing user feedback for invalid date entries
would improve accessibility and usability.

Thank you for your attention to this matter. I look forward to your
response and any updates regarding this issue.

*Best regards,*

*Upamithran K*

Received on Wednesday, 8 October 2025 20:32:13 UTC