Bug 235645 - Revert r286855 as it caused form submission issues
Summary: Revert r286855 as it caused form submission issues
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 220502
  Show dependency treegraph
 
Reported: 2022-01-26 08:44 PST by Chris Dumez
Modified: 2022-01-27 08:33 PST (History)
8 users (show)

See Also:


Attachments
Patch (22.76 KB, patch)
2022-01-26 08:46 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (25.58 KB, patch)
2022-01-26 09:37 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].