mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-24650 xhtml strict fix in forms
This commit is contained in:
parent
ac9889d434
commit
6ef1402e3d
@ -237,7 +237,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
|
||||
'sesskey'=>sesskey(),
|
||||
));
|
||||
$str .= '<noscript>';
|
||||
$str .= "<object type='text/html' data='$editorurl' height='160' width='600' style='border:1px solid #000'></object>";
|
||||
$str .= "<div><object type='text/html' data='$editorurl' height='160' width='600' style='border:1px solid #000'></object></div>";
|
||||
$str .= '</noscript>';
|
||||
}
|
||||
}
|
||||
|
@ -331,7 +331,7 @@ FMHTML;
|
||||
));
|
||||
|
||||
$html .= '<noscript>';
|
||||
$html .= "<object type='text/html' data='$filemanagerurl' height='160' width='600' style='border:1px solid #000'></object>";
|
||||
$html .= "<div><object type='text/html' data='$filemanagerurl' height='160' width='600' style='border:1px solid #000'></object></div>";
|
||||
$html .= '</noscript>';
|
||||
|
||||
|
||||
|
@ -102,7 +102,7 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_input {
|
||||
|
||||
// non js file picker
|
||||
$html .= '<noscript>';
|
||||
$html .= "<object type='text/html' data='$nonjsfilepicker' height='160' width='600' style='border:1px solid #000'></object>";
|
||||
$html .= "<div><object type='text/html' data='$nonjsfilepicker' height='160' width='600' style='border:1px solid #000'></object></div>";
|
||||
$html .= '</noscript>';
|
||||
|
||||
return $html;
|
||||
|
@ -13,7 +13,7 @@ class MoodleQuickForm_submitlink extends MoodleQuickForm_submit {
|
||||
$onmouseover = "window.status=\'" . $text . "\';";
|
||||
$onmouseout = "window.status=\'\';";
|
||||
|
||||
return "<noscript>" . parent::toHtml() . '</noscript><script type="text/javascript">' . $this->_js . "\n"
|
||||
return "<noscript><div>" . parent::toHtml() . '</div></noscript><script type="text/javascript">' . $this->_js . "\n"
|
||||
. 'document.write(\'<a href="#" onclick="' . $this->_onclick . '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">'
|
||||
. $text . "</a>');\n</script>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user