How to Write Accessible Forms - Don't forget the errors!
Don't forget the errors!
Inevitably a user will put bad data into a form, and those errors need to be caught and reported to the user. And the user may need some help to fix the error.
validate() returns an object with a list of errors, and the id values of the form controls to which they refer.