Skip to content

Commit

Permalink
Improve accessibility of a links on TOC by adding "title" attr
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomozart committed Apr 22, 2024
1 parent 31afae8 commit 34623a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ function html_list_toc($item)
$link = $item['link'];
}

return '<a href="' . $link . '">' . hsc($item['title']) . '</a>';
return '<a href="' . $link . '" title="' . hsc($item['title']) . '">' . hsc($item['title']) . '</a>';
}

/**
Expand Down

0 comments on commit 34623a9

Please sign in to comment.