Bug 233604

Summary: Several WPT tests under html/semantics/forms/constraints are failing due to extraneous willValidate() checks
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: FormsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, cdumez, changseok, darin, esprehn+autocc, ews-watchlist, ggaren, gyuyoung.kim, mifenton, sam, webkit-bug-importer, wenson_hsieh, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 233428    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch ews-feeder: commit-queue-

Description Chris Dumez 2021-11-29 15:52:07 PST
Several WPT tests under html/semantics/forms/constraints are failing due to extraneous willValidate() checks. Per the specification and to match the behavior of Blink & Gecko, ValidityState properties such as validity.typeMismatch should return true in case of mismatch even if the control is disabled (and thus willValidate() returns false).
Comment 1 Chris Dumez 2021-11-29 15:54:56 PST
Created attachment 445359 [details]
Patch
Comment 2 Chris Dumez 2021-11-29 18:44:01 PST
Created attachment 445371 [details]
Patch
Comment 3 Chris Dumez 2021-11-30 07:34:27 PST
Created attachment 445415 [details]
Patch
Comment 4 Chris Dumez 2021-11-30 10:06:39 PST
Created attachment 445432 [details]
Patch
Comment 5 EWS 2021-11-30 12:39:15 PST
Committed r286316 (244675@main): <https://commits.webkit.org/244675@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 445432 [details].
Comment 6 Radar WebKit Bug Importer 2021-11-30 12:40:22 PST
<rdar://problem/85881653>
Comment 7 Darin Adler 2021-11-30 12:51:34 PST
Noticed the misspelling "undeflow" is fairly common here.
Comment 8 Chris Dumez 2021-11-30 12:58:12 PST
(In reply to Darin Adler from comment #7)
> Noticed the misspelling "undeflow" is fairly common here.

Fixed in <https://commits.webkit.org/r286319>, thanks for noticing.