mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-7861 xhtml strict fixes - do not add label for static element in formslib
This commit is contained in:
parent
2c94b1cea6
commit
217d03a14c
1 changed files with 3 additions and 0 deletions
|
@ -1359,6 +1359,9 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
|
||||||
$html = str_replace('{help}', '', $html);
|
$html = str_replace('{help}', '', $html);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if ($element->getType() == 'static') {
|
||||||
|
$html = preg_replace('|<label.*?</label>|i', '', $html); //xhtml compliance - no label for static content
|
||||||
|
}
|
||||||
$this->_templates[$element->getName()] = $html;
|
$this->_templates[$element->getName()] = $html;
|
||||||
if (!is_null($element->getAttribute('id'))) {
|
if (!is_null($element->getAttribute('id'))) {
|
||||||
$id = $element->getAttribute('id');
|
$id = $element->getAttribute('id');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue