Bug 48491

Summary: using setCustomValidity makes checkValidity unreliable
Product: WebKit Reporter: alexander farkas <info>
Component: FormsAssignee: 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

Description alexander farkas 2010-10-27 18:59:34 PDT
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.
Comment 1 Kent Tamura 2010-10-27 23:10:09 PDT
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.