(search) Fix bad practice usage of innerHTML to set what should be text content.

This commit is contained in:
Viktor Lofgren 2024-06-12 08:59:40 +02:00
parent e0459d0c0d
commit 801cf4b5da

View File

@ -27,7 +27,7 @@ function setupTypeahead() {
for (i=0;i<items.length;i++) { for (i=0;i<items.length;i++) {
item = document.createElement('a'); item = document.createElement('a');
item.innerHTML=items[i]; item.textContent=items[i];
item.setAttribute('href', '#') item.setAttribute('href', '#')
function suggestionClickHandler(e) { function suggestionClickHandler(e) {