From b572b7979801473e475279facf2089e454da7519 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sun, 8 Jan 2023 21:26:44 -0800 Subject: [PATCH] fix label for assignment, fix disk icon alt --- scripts/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");