Issues

ZF-2154: formLabel should be "for" ID, not NAME

Description

The "for" attribute of the formLabel view helper is populated with the name parameter it is given, however, the "for" attribute should reference the ID attribute of its related form field (http://w3.org/TR/xhtml-modularization/…).

This is not much of an issue using the default components as NAME is generally equal to ID, but when overriding the Zend_View_Helper_FormElement::getInfo() function to use a different algorithm to generate IDs (for example to remove illegal "[" & "]" characters) the connection between the label and the form field breaks.

Comments

Proposed Patch

Scheduled for 1.0.3 release

Fixed in revision ZF-2154. Thanks, Brenton.

I mean revision 7389. Wrong clipboard :)