mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 22:45:54 +02:00
MDL-19030 fixed xhtml strictness when label attached to frozen element; merged from MOODLE_19_STABLE
This commit is contained in:
parent
fc3ec2ca24
commit
8c453e41f7
@ -186,7 +186,7 @@ class HTML_QuickForm_Renderer_Tableless extends HTML_QuickForm_Renderer_Default
|
||||
} else {
|
||||
$id = $element->getName();
|
||||
}
|
||||
if (!empty($id)) {
|
||||
if (!empty($id) and !$element->isFrozen()) { // moodle hack
|
||||
$html = str_replace('<label', '<label for="' . $id . '"', $html);
|
||||
$element_html = preg_replace('#name="' . $id . '#',
|
||||
'id="' . $id . '" name="' . $id . '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user