ZF-5196: Invalid XHTML strict produced by form decorator about Zend_Form_Element_Captcha


As described in… The html produced by the form decorator about "Zend_Form_Element_Captcha" is not valid XHTML strict. Here is an example html:

the "helper" attribute should not be there


pass 'helper' => null example: $captcha = new Zend_Form_Element_Captcha( 'captcha', array( 'helper' => null, 'captcha' => array( 'captcha' => 'Image', 'wordLen' => 6, 'timeout' => 300, 'imgDir' => 'img/captcha', 'imgUrl' => 'http://urlpath/img/captcha', 'width' => 200, 'height' => 60, 'font' => '/absolute/path/to/your/font.ttf' ))); this works for me, but unfortunately this is not the default with the decorator for the captcha element line 89 Zend/Form/Decorator/ViewHelper.php I think

It uses formHidden so it's probably form view helper issue...