[Webkit-unassigned] [Bug 257989] New: Clearing of dirty for :user-invalid happens on wrong form event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 12 16:55:47 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=257989

            Bug ID: 257989
           Summary: Clearing of dirty for :user-invalid happens on wrong
                    form event
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Intel)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon at welsh-au.com

Created attachment 466673

  --> https://bugs.webkit.org/attachment.cgi?id=466673&action=review

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230612/8c5d7b4f/attachment.htm>


More information about the webkit-unassigned mailing list