[Webkit-unassigned] [Bug 248401] New: ValidityState reports "valid" for partially completed dates

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 28 09:13:36 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=248401

            Bug ID: 248401
           Summary: ValidityState reports "valid" for partially completed
                    dates
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jeremy.m.frey at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221128/5453d739/attachment.htm>


More information about the webkit-unassigned mailing list