Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- fix for bug #11164: static elements generate invalid XHTML code

  • Loading branch information...
commit 76ea11230a66d32b4183a1031e5f584865e61666 1 parent b12567b
Mark Wiesemann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  HTML/QuickForm/Renderer/Tableless.php
View
2  HTML/QuickForm/Renderer/Tableless.php
@@ -206,7 +206,7 @@ function renderElement(&$element, $required, $error)
} else {
$id = $element->getName();
}
- if (!empty($id)) {
+ if ($element->getType() != 'static' && !empty($id)) {
$html = str_replace('<label', '<label for="' . $id . '"', $html);
$element_html = preg_replace('#name="' . $id . '#',
'id="' . $id . '" name="' . $id,
Please sign in to comment.
Something went wrong with that request. Please try again.