WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
248401
ValidityState reports "valid" for partially completed dates
https://bugs.webkit.org/show_bug.cgi?id=248401
Summary
ValidityState reports "valid" for partially completed dates
Jeremy Frey
Reported
2022-11-28 09:13:36 PST
Repro steps: 1. In an `<input type="date" />` element, use the keyboard to enter the month, day, or year portion of the date. 2. Leave the other date parts blank. 3. Inspect the element's ValidityState. Expected: `{ badInput: true, valid: false }` Actual: `{ badInput: false, valid: true }` AFAIK, Blink and Gecko report badInput: true in this scenario. A closely-related question was asked on SO which doesn't have any answers due to the current behavior:
https://stackoverflow.com/questions/72915862/javascript-date-input-in-safari-validation-31-of-february-year
Attachments
Add attachment
proposed patch, testcase, etc.
Karl Dubost
Comment 1
2022-12-05 01:02:09 PST
Probably related to
http://wpt.live/html/semantics/forms/constraints/form-validation-checkValidity.html
https://wpt.fyi/results/html/semantics/forms/constraints/form-validation-checkValidity.html?label=experimental&label=master&aligned
Radar WebKit Bug Importer
Comment 2
2022-12-05 09:14:17 PST
<
rdar://problem/102984901
>
Tim Nguyen (:ntim)
Comment 3
2023-05-05 14:58:26 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/13523
EWS
Comment 4
2023-05-05 22:27:05 PDT
Committed
263748@main
(ec9036933491): <
https://commits.webkit.org/263748@main
> Reviewed commits have been landed. Closing PR #13523 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug