Bug 48491
Summary: | using setCustomValidity makes checkValidity unreliable | ||
---|---|---|---|
Product: | WebKit | Reporter: | alexander farkas <info> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | All | ||
URL: | http://afarkas.github.com/webshim/tests/safari.html |
alexander farkas
This bug is extremly curious. After setting setCustomValidity('error') on an element with a constrain (i.e.: required). The checkValidity method return false, if the field is not empty and the setCustomValidity was set to an empty string. The validityState returns true for the valid-flag. You will find a testcase @ http://afarkas.github.com/webshim/tests/safari.html. (Hope this makes it much clearer). This bug should have a high priority and should block bug 28649.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Tamura
I confirmed that Safari 5.0.2 had this problem. However Safari nightly with today's WebKit and Google Chrome 8.0.552.18 doesn't have the problem. I'm not sure what revision fixed the problem.