Bug 235645

Summary: Revert r286855 as it caused form submission issues
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: FormsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, mifenton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=235718
Bug Depends on:    
Bug Blocks: 220502    
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2022-01-26 08:44:15 PST
Load a simple form like below and press submit. STP will put focus on the second radio and refuse to submit, even though the first radio from the same group is checked. 

I expected the behavior from "Version 15.2 (17612.3.6.1.6)" and other browsers, where "foo" has been checked (regardless of a value attribute) and so it fullfills the requiredness of the "foo" form field (and not all elements with a required). 

<form>
    <input type=radio name=foo required checked>
    <input type=radio name=foo required>
    <input type=submit>
</form>
Comment 1 Chris Dumez 2022-01-26 08:44:26 PST
<rdar://88020080>
Comment 2 Chris Dumez 2022-01-26 08:46:01 PST
Created attachment 450025 [details]
Patch
Comment 3 Chris Dumez 2022-01-26 09:37:05 PST
Created attachment 450027 [details]
Patch
Comment 4 Chris Dumez 2022-01-26 10:46:55 PST
Comment on attachment 450027 [details]
Patch

win failure is unrelated.
Comment 5 EWS 2022-01-26 11:14:34 PST
Committed r288631 (246446@main): <https://commits.webkit.org/246446@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 450027 [details].