summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-27 21:15:41 +0200
committerPaul Buetow <paul@buetow.org>2026-01-27 21:15:41 +0200
commita19537eea27d72429789c0b8518fcfbcc6d68e3c (patch)
tree909a0f6e381bc7d1568868c74962a51a66de9289 /js
parentc43c6a934659787caee89ca1a61e996988cad9a2 (diff)
Fix W3C validation: add id to modal title for aria-labelledby
The modal's aria-labelledby="modal-title" now correctly references the h2 element inside the modal content. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'js')
-rw-r--r--js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/app.js b/js/app.js
index f6dd210..0a563a5 100644
--- a/js/app.js
+++ b/js/app.js
@@ -237,7 +237,7 @@ function openModal(bookId) {
`}
</div>
<div class="modal-details">
- <h2>${escapeHtml(book.title)}</h2>
+ <h2 id="modal-title">${escapeHtml(book.title)}</h2>
<p class="author">${escapeHtml(book.author)}</p>
<div class="modal-meta">
<div class="meta-item">