ZF-9322: Zend_Form_Element_Multiselect creates non-valid XHTML labels

Issue Type: Bug Created: 2010-03-04T03:30:50.000+0000 Last Updated: 2011-12-01T12:24:02.000+0000 Status: Closed Fix version(s): Reporter: Max Mondaine (mondaine) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-8713



When creating multiple checkboxes with a label like this

$element = new Zend_Form_Element_MultiCheckbox('foo', array( 'multiOptions' => array( 'foo' => 'Foo Option', 'bar' => 'Bar Option', 'baz' => 'Baz Option', 'bat' => 'Bat Option', ); )); $element ->setLabel("Test");

a label (for="foo") is created that refers to a ID ("foo") that is not created by the form:

Test Foo Option... As the elements have ids like "foo-foo", "foo-bar"... and not "foo".


Posted by Adam Lundrigan (adamlundrigan) on 2011-12-01T12:24:01.000+0000

Was fixed sometime after 1.10.1

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.