Bug 247545 - Hidden buttons can't be used as the submitter in an implicit submission
Summary: Hidden buttons can't be used as the submitter in an implicit submission
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-11-06 06:33 PST by Noam Rosenthal
Modified: 2022-11-17 17:32 PST (History)
7 users (show)

See Also:


Attachments
Test case (438 bytes, text/html)
2022-11-06 06:33 PST, Noam Rosenthal
no flags Details

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