ZF-3877: Zend_Dojo_Form_SubForm decorator ContentPane renders invalid name attribute on surrounding div
Description
The Zend_Dojo_Form_SubForm decorator ContentPane renders a name attribute in the surrounding div with the value of the subform name. This is not XHTML compliant, as there is no name attribute for divs.
Here is an example that produces this behavior:
$form = new Zend_Dojo_Form();
$subform = new Zend_Dojo_Form_SubForm();
$subform->addElement('text', 'test');
$form->addSubForm($subform, 'test');
echo $form;
This gets the following html output:
You notice the name attribute on the test-ContentPane div. Just tested with latest trunk (r11304).
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-09-08T10:17:41.000+0000
Cannot reproduce, and have added test cases to the test suite to verify.
Posted by Matthew Weier O'Phinney (matthew) on 2008-09-09T05:46:20.000+0000
Confirmed.
Posted by Matthew Weier O'Phinney (matthew) on 2008-09-09T06:12:19.000+0000
Downgrading to trivial and changing type to improvement; invalid HTML is not considered a bug, but valid HTML is considered a feature.
Scheduling, tentatively, for next mini release.