fix label for assignment,

fix disk icon alt
This commit is contained in:
Arthur Lu 2023-01-08 21:26:44 -08:00
parent f4c830f1ca
commit 05679be08c

View File

@ -65,7 +65,7 @@ function addResourceLine (fieldset, iconHref, labelText, inputAttr, unitText=nul
let label = document.createElement("label"); let label = document.createElement("label");
label.innerHTML = labelText; label.innerHTML = labelText;
label.for = labelText; label.htmlFor = labelText;
field.append(label); field.append(label);
let input = document.createElement("input"); let input = document.createElement("input");
@ -87,6 +87,7 @@ function addDiskLine (fieldset, id, iconHref, labelText, valueText) {
let icon = document.createElement("img"); let icon = document.createElement("img");
icon.src = iconHref; icon.src = iconHref;
icon.alt = labelText;
field.append(icon); field.append(icon);
let label = document.createElement("label"); let label = document.createElement("label");