Bug 51782

Summary: :invalid is being applied too early
Product: WebKit Reporter: Alan Hogan <webkit-bugzilla>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.6   
URL: http://dl.dropbox.com/u/105727/web/invalid.html

Alan Hogan
Reported 2010-12-31 11:25:37 PST
:invalid is being applied to form elements before they are attempted to be submitted, even while the user is typing. If I type "f" to begin "foo@example.com", the input element will already turn red. This is like telling the user they are making a mistake before they actually have. For that reason, I will use the novalidate attribute until Webkit no longer tells my users they are wrong prematurely. (In some cases I cannot seem to reliably reproduce, :invalid is even being applied before the user focuses in the element.)
Attachments
Kent Tamura
Comment 1 2010-12-31 22:01:31 PST
This behavior is defined by the standard and Opera and Firefox 4 have the same behavior.
Alan Hogan
Comment 2 2011-05-06 18:20:39 PDT
Is there any work being done to implement something like Mozilla’s :-moz-ui-invalid? It addresses the concerns here (without redefining the standard, but rather adding to it).
Kent Tamura
Comment 3 2011-05-06 18:40:05 PDT
(In reply to comment #2) > Is there any work being done to implement something like Mozilla’s :-moz-ui-invalid? It addresses the concerns here (without redefining the standard, but rather adding to it). AFAIK, no one is working on or has a plan of it. It's welcome for someone to write a patch for it.
Note You need to log in before you can comment on or make changes to this bug.