Grails required field validator is not working in safari browser.
<g:textField name="username" class="drpdwn" required="Enter data"/>
Grails required field validator is not working in safari browser.
<g:textField name="username" class="drpdwn" required="Enter data"/>
It seems to be a bug in safari.
From discussion in github:
The sad truth is, that HTML5 forms features are fragmented. Safari 5.0.0 has included very odd support for interactive form validation, removed it in 5.0.2 and hasn't done anything for Safari 6
Also there is a ticket for safari 5.1, created by Paul Irish
This conversation is about interactive validation feature.
Safari supports the required attribute. - correctly matches :invalid selector - input.validity.valueMissing correctly returns true for But form submission is not prevented because Safari has no interactive validation feature.
And another ticket, which status "WONT FIX" and quote from there:
We disabled the interactive form validation feature because the implementation was incomplete and there were some compatibility issues.