-- Dario Zamuner <[EMAIL PROTECTED]> wrote
(on Wednesday, 06 August 2008, 02:38 AM -0700):
> Using Zend Framework 1.6.0 RC 1 if I add an hidden element to a form with the
> 'id' name, it's rendered (and escaped) inside the id attrib of the form too.
This is already fixed in current trunk and the 1.6 release branch.
> Example:
>
> class TestForm extends Zend_Form
> {
> public function __construct()
> {
> parent::__construct();
>
> $elem = new Zend_Form_Element_Hidden('id');
>
> $this->addElements(array($elem));
> }
> }
>
>
> The HTML output is
>
> <form id="&lt;dt&gt;&lt;/dt&gt;
> &lt;dd&gt;
> &lt;input type=&quot;hidden&quot; name=&quot;id&quot;
> value=&quot;&quot; id=&quot;id&quot;
> /&gt;&lt;/dd&gt;" enctype="application/x-www-form-urlencoded"
> action="" method="post"><dl class="zend_form">
> <dt></dt>
> <dd>
> <input type="hidden" name="id" value="" id="id" /></dd></dl></form>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/