-- 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="&amp;lt;dt&amp;gt;&amp;lt;/dt&amp;gt;
> &amp;lt;dd&amp;gt;
> &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;id&amp;quot;
> value=&amp;quot;&amp;quot; id=&amp;quot;id&amp;quot;
> /&amp;gt;&amp;lt;/dd&amp;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/

Reply via email to