diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-27 21:15:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-27 21:15:41 +0200 |
| commit | a19537eea27d72429789c0b8518fcfbcc6d68e3c (patch) | |
| tree | 909a0f6e381bc7d1568868c74962a51a66de9289 /js | |
| parent | c43c6a934659787caee89ca1a61e996988cad9a2 (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"> |
