ZF-3945: Zend_Form::addDefaultElementValidators() and similar
I think it would make sense to add the option to Zend_Form to automatically add some filters/validators to elements created through it.
Example: - Create form - Set whitespace trimmer as the default form filter - Add elements "through" the form (addElement with text element name or createElement) with some filters of their own, i.e. an email field with an email validator - The default form element filters get prepended to the list of element-specific filters. For the email field, the value would first get trimmed and then validated as an email.
What do you think?