ZF-3879: Zend_Dojo_Form_Element_CheckBox renders an options attribute with value "0 1"

Description

Zend_Dojo_Form_Element_CheckBox renders an options attribute with value "0 1" in the input tag. This is not XHTML compliant.

Comments

Patches applied to trunk and 1.6 release branch.

I'm working with Zend Framework 1.7.4 here and I have this issue as well:

$gsPr1 = new Zend_Dojo_Form_Element_CheckBox('cbxGreenSeatPrice1'); $gsPr1->setLabel('Greenseat 1'); $gsPr1->setValue('greenseat1'); $gsPr1->setChecked(false);

Renders to:

Another issue: setChecked(false) doesn't seem to work.