-- Joó Ádám <[EMAIL PROTECTED]> wrote
(on Saturday, 02 August 2008, 10:05 PM +0200):
> I think there's some strange bug in Zend_Form. See this code:
> 
> $form = new Zend_Form();
> echo $form;
> 
> which generates the following output:
> 
> <form enctype="application/x-www-form-urlencoded" action=""
> method="post" id=""><dl class="zend_form"></dl></form>
> 
> Notice the empty id attribute, which not just unwanted but also invalid.

I believe there's already an issue filed for this, and if it's not
already fixed in trunk, I'll be fixing it this week before RC2.

> I also wonder why is the enctype specified, since it can be omitted,
> and defaults to the above value.

As noted in the issue you opened, we'd rather err on the side of
explicit definitions. While it may be the default, it's not the only
value possible, and we want to ensure that the correct encoding is used.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to