Skip to content

Commit

Permalink
Accessibility: function _title_html, replaced <div> with H2, enclosed…
Browse files Browse the repository at this point in the history
… <div> to <span> - now validates! weblib.php: function side_block_start.
  • Loading branch information
nfreear committed Feb 28, 2006
1 parent 02db7f7 commit d455cd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">';

Expand Down

0 comments on commit d455cd0

Please sign in to comment.