Accessibility: function _title_html, replaced <div> with H2, enclosed <div> to <span> - now validates! weblib.php: function side_block_start.

This commit is contained in:
nfreear 2006-02-28 13:13:52 +00:00
parent 02db7f7a02
commit d455cd04e9

View File

@ -4366,9 +4366,8 @@ function print_side_block_start($heading='', $attributes = array()) {
echo '<div '.$attrtext.'>';
if ($heading) {
//TODO (nfreear): Accessibility: <div> not valid inside <h2>.
echo '<div class="header">'.$heading.'</div>';
///echo '<h2 class="header">'.$heading.'</h2>';
//Accessibility: replaced <div> with H2 - required mods, moodleblock.class.php:_title_html
echo '<h2 class="header">'.$heading.'</h2>';
}
echo '<div class="content">';