[webkit-changes] [WebKit/WebKit] f4bbd9: Programmatic form submission should also affect :u...
Tim Nguyen
noreply at github.com
Mon Aug 28 19:49:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f4bbd99f53b5b7f1f0bde29a1b874bd532bb5721
https://github.com/WebKit/WebKit/commit/f4bbd99f53b5b7f1f0bde29a1b874bd532bb5721
Author: Tim Nguyen <ntim at apple.com>
Date: 2023-08-28 (Mon, 28 Aug 2023)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/css/selectors/user-invalid.html
M LayoutTests/imported/w3c/web-platform-tests/css/selectors/user-valid.html
M Source/WebCore/html/HTMLFormElement.cpp
Log Message:
-----------
Programmatic form submission should also affect :user-invalid/valid state
https://bugs.webkit.org/show_bug.cgi?id=260813
rdar://114580382
Reviewed by Aditya Keerthi.
We should not check for an user gesture when setting the user-interacted flag on submission.
This also matches the HTML spec that landed.
* LayoutTests/imported/w3c/web-platform-tests/css/selectors/user-invalid.html:
* LayoutTests/imported/w3c/web-platform-tests/css/selectors/user-valid.html:
* Source/WebCore/html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::submitIfPossible):
Canonical link: https://commits.webkit.org/267384@main
More information about the webkit-changes
mailing list