Bug 247545

Summary: Hidden buttons can't be used as the submitter in an implicit submission
Product: WebKit Reporter: Noam Rosenthal <noam>
Component: FormsAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, akeerthi, cdumez, karlcow, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=243595
Attachments:
Description Flags
Test case none

Description Noam Rosenthal 2022-11-06 06:33:09 PST
Created attachment 463434 [details]
Test case

When pressing enter in a text field, the first non-disabled submit button should be the submitter. However, in webkit and not in conformance with the spec, buttons with the "hidden" attribute are ignored.
See attached test case, works according to spec in Chromium & Gecko
Spec: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission
Comment 1 Radar WebKit Bug Importer 2022-11-13 06:34:19 PST
<rdar://problem/102290409>
Comment 2 Ryosuke Niwa 2022-11-17 12:52:57 PST
Pull request: https://github.com/WebKit/WebKit/pull/6600
Comment 3 EWS 2022-11-17 17:32:18 PST
Committed 256813@main (ad3421ff1186): <https://commits.webkit.org/256813@main>

Reviewed commits have been landed. Closing PR #6600 and removing active labels.