Reputation: 1145
During client-side form validation certain parts can be validated using html(using the required or type attribute in <input>). I can achive those same things using js. So, what parts of the form validation should be done in js and what parts can be left for html? Which one is more safe?
Upvotes: 1
Views: 2488
Reputation: 12933
HTML5 validation is convenient but it depends on your audience. HTML5 validations are not supported by some older browsers (here is the list: http://caniuse.com/#feat=form-validation). Also I've noticed a Safari bug: the form doesn't validate (expected behavior) but the pop up error message doesn't display leaving the user unsure of the issue.
Upvotes: 1