Bug 51782
Summary: | :invalid is being applied too early | ||
---|---|---|---|
Product: | WebKit | Reporter: | Alan Hogan <webkit-bugzilla> |
Component: | Forms | Assignee: | 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
: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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Tamura
This behavior is defined by the standard and Opera and Firefox 4 have the same behavior.
Alan Hogan
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
(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.