ZF-5855: Strange helper="formText" attribute in Zend_Form_Element_Captcha rendered output


The rendered form output has code like:

where helper attribute is proprietary for html validations, throwing warnings


Meanwhile the bug is fixed, there is a possible workaround how to get rid of this attribute and keep your HTML valid:

$captcha = new Zend_Form_Element_Captcha( ... ); unset($captcha->helper);

Patch to add a test and patch the code. Issue was that the captcha element contains a helper variable by changing the getAttribs to unset it later fixes the issue. Changing the scope of the $helper could also fix the intended issue.

Patch applied to trunk and 1.8 release branch -- thanks, Mike!