ZF-3024: Zend_Form Radio and MultiCheckbox elements fail W3C validations due to missing IDs
Multi elements such as Radio and MultiCheckbox do not pass W3C validations with the default decorators due to an issue with how labels are generated.
W3C says that the 'for' attribute of an element must point to the id of a single other input element in the form. However, in cases such as the radio and multicheckbox, there are actually multiple elements in the form related to the same label. Our current solution uses the element name (which is the same between all input elements) in the label "for" attribute -- which is invalid markup.
- Do not use an id with the label in these situations (may be invalid markup)
- Generate a unique ID for each input element, and utilize the first for the label.