On Sat, Aug 2, 2008 at 4:05 PM, Joó Ádám <[EMAIL PROTECTED]> wrote:
> Hello Matthew,
>
> 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 also wonder why is the enctype specified, since it can be omitted,
> and defaults to the above value.
I don't think a form is supposed to have an ID by default.. however,
you may always do:
$form->setAttrib('id','mysuperawesomeform');
If an empty attribute is invalid (xhtml), I'd file a bug for this.
As for the enctype, I think it never heards to be explicit, or do you
see any disadvantage?
Cheers,
Till