diff --git a/system/resources/js/toc.generator.js b/system/resources/js/toc.generator.js index 5e841d9..91bc233 100644 --- a/system/resources/js/toc.generator.js +++ b/system/resources/js/toc.generator.js @@ -38,6 +38,7 @@ function generateTOC (id) { var anchor = documentRef.createElement('a'); anchor.setAttribute('href', '#' + heading.textContent.replace(/\s+/g, '-').toLowerCase() + id); anchor.setAttribute('class', 'anchor'); + anchor.setAttribute('aria-label', heading.textContent); anchor.innerHTML = ''; var link = documentRef.createElement('a');