MDL-24650 xhtml strict fix in forms

This commit is contained in:
Petr Skoda 2010-10-13 17:35:21 +00:00
parent ac9889d434
commit 6ef1402e3d
4 changed files with 4 additions and 4 deletions

View File

@ -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>';
}
}

View File

@ -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>';

View File

@ -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;

View File

@ -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>";
}