mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(search) Fix bad practice usage of innerHTML to set what should be text content.
This commit is contained in:
parent
e0459d0c0d
commit
801cf4b5da
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user