WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 257988
257989
Clearing of dirty for :user-invalid happens on wrong form event
https://bugs.webkit.org/show_bug.cgi?id=257989
Summary
Clearing of dirty for :user-invalid happens on wrong form event
Simon Welsh
Reported
2023-06-12 16:55:47 PDT
Created
attachment 466673
[details]
example.html When submitting a form with validation errors, the :user-invalid dirty state is reset. When resetting a form, it is not. In the attached form, dirty the 'not-an-email' field with an invalid email address. The border will become red on blur. If clicking the submit button, the form will fail validation but the red border will clear. If clicking the reset button, the email field will return to its starting value but maintain the red border. I'd expect these behaviours to be reversed. That is submitting a form does not clear the dirty tracking and resetting a form does.
Attachments
example.html
(494 bytes, text/html)
2023-06-12 16:55 PDT
,
Simon Welsh
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-06-19 16:56:14 PDT
<
rdar://problem/111014938
>
Tim Nguyen (:ntim)
Comment 2
2023-08-07 20:55:34 PDT
I'll address this in
bug 257988
. *** This bug has been marked as a duplicate of
bug 257988
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug