This is a problem with jQuery, not the Zend Framework. The wrapper of the element in the tag tag is perfectly correct, it just jQuery UI does not support it. I published a bug report.
* Update answer *
However, I think that you are trying to use (as you commented) to use a set of jQuery UI buttons, which I did when I encountered a jQuery UI error. In short, you have two options until the error is fixed:
1) Use the Dennis D. helper helper to move the default switch item.
2) Replace the Zend Framework radio button browser assistant with code written by Dennis D. It is displayed in the Zend_View_Helper_FormRadio file on line 169 (Zend framework Version 1.11.0).
First create a new shortcut and close the tag
// Create the label $label = '<label' . $this->_htmlAttribs($label_attribs) . ' for="' . $optId . '">' . (('prepend' == $labelPlacement) ? $opt_label : '') . '<input type="' . $this->_inputType . '"' . $opt_label . '</label>';
Secondly, change the code that the switch creates:
// Create the radio button $radio = '<input type="' . $this->_inputType . '"'
Third, remove the closing tag tag (as you already did) in the view helper, change:
. $endTag . (('append' == $labelPlacement) ? $opt_label : '') . '</label>';
And just replace with:
. $endTag;
Then combine the radio and the label using positioning:
// Combine the label and the radio button if ('prepend' == $labelPlacement) { $radio = $label . $radio; } else { $radio = $radio . $label; }
And that he (again Dennis D did it in the view helper), but the changed code should look like (starting from line 169:
// Create the label $label = '<label' . $this->_htmlAttribs($label_attribs) . ' for="' . $optId . '">' . $opt_label . '</label>'; // Create the radio button $radio = '<input type="' . $this->_inputType . '"' . ' name="' . $name . '"' . ' id="' . $optId . '"' . ' value="' . $this->view->escape($opt_value) . '"' . $checked . $disabled . $this->_htmlAttribs($attribs) . $endTag; // Combine the label and the radio button if ('prepend' == $labelPlacement) { $radio = $label . $radio; } else { $radio = $radio . $label; } // add to the array of radio buttons $list[] = $radio;