diff --git a/scripts/config.js b/scripts/config.js index d7149f5..ba81251 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -65,7 +65,7 @@ function addResourceLine (fieldset, iconHref, labelText, inputAttr, unitText=nul let label = document.createElement("label"); label.innerHTML = labelText; - label.for = labelText; + label.htmlFor = labelText; field.append(label); let input = document.createElement("input"); @@ -87,6 +87,7 @@ function addDiskLine (fieldset, id, iconHref, labelText, valueText) { let icon = document.createElement("img"); icon.src = iconHref; + icon.alt = labelText; field.append(icon); let label = document.createElement("label");