ZF-11620: formRadio ignores doctype when selecting default list separator

Description


public function formRadio($name, $value = null, $attribs = null,
        $options = null, $listsep = "
\n") { // ... // done! $xhtml .= implode($listsep, $list); }

My proposal:


public function formRadio($name, $value = null, $attribs = null,
    $options = null, $listsep = "
\n") { // ... // XHTML or HTML for standard list separator? if (!$this->_isXhtml() && false !== strpos($listsep, '
')) { $listsep = str_replace('
', '
', $listsep); } // done! $xhtml .= implode($listsep, $list); return $xhtml; }

Comments

Fix and unit test added.

I've tested the patch by applying against trunk, and everything appears to be OK. Unit tests pass individually, and entire {{Zend_View_Helper}} suite passes as well.

Fixed in trunk (1.12.0): r24865