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

Issue Type: Bug Created: 2009-02-22T12:41:13.000+0000 Last Updated: 2012-05-09T18:12:32.000+0000 Status: Resolved Fix version(s): - 1.8.4 (23/Jun/09)

Reporter: ionut stoica (iongion) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-5196

Attachments: - zf-5855.patch


The rendered form output has code like:

where helper attribute is proprietary for html validations, throwing warnings


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!

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.