ZF-5855: Strange helper="formText" attribute in Zend_Form_Element_Captcha rendered output
Description
The rendered form output has code like:
where helper attribute is proprietary for html validations, throwing warnings
The rendered form output has code like:
where helper attribute is proprietary for html validations, throwing warnings
Comments
Posted by Ondrej Machulda (ondram) on 2009-04-24T08:08:58.000+0000
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);
Posted by Mike Willbanks (digitalstruct) on 2009-05-23T22:07:52.000+0000
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.
Posted by Matthew Weier O'Phinney (matthew) on 2009-06-18T11:49:12.000+0000
Patch applied to trunk and 1.8 release branch -- thanks, Mike!