removed space from alt attribute, use empty "" insted according to accessibility recommendations

This commit is contained in:
skodak 2006-12-03 15:34:37 +00:00
parent 30e113f4fa
commit 28b52b8607
2 changed files with 2 additions and 2 deletions

View File

@ -723,7 +723,7 @@ function displaydir ($wdir) {
$fileurl = rawurlencode(dirname($wdir));
print_cell();
// alt attribute intentionally empty to prevent repetition in screen reader
print_cell('left', '<a href="index.php?id='.$id.'&amp;wdir='.$fileurl.'&amp;choose='.$choose.'"><img src="'.$CFG->pixpath.'/f/parent.gif" height="16" width="16" alt=" " />&nbsp;'.get_string('parentfolder').'</a>', 'name');
print_cell('left', '<a href="index.php?id='.$id.'&amp;wdir='.$fileurl.'&amp;choose='.$choose.'"><img src="'.$CFG->pixpath.'/f/parent.gif" height="16" width="16" alt="" />&nbsp;'.get_string('parentfolder').'</a>', 'name');
print_cell();
print_cell();
print_cell();

View File

@ -5402,7 +5402,7 @@ function page_doc_link($text='', $iconpath='') {
}
// alt left blank intentionally to prevent repetition in screenreaders
$str .= '<img src="' .$iconpath. '" alt=" " />' .$text. '</a>';
$str .= '<img src="' .$iconpath. '" alt="" />' .$text. '</a>';
return $str;
}