From c4375737bcb77a45e37abc7839c0a74951a4091d Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 12 Oct 2024 23:32:22 +0200 Subject: [PATCH] turns out, we don't need this --- makeDOM.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/makeDOM.ts b/makeDOM.ts index 0668784..48851b0 100644 --- a/makeDOM.ts +++ b/makeDOM.ts @@ -58,13 +58,8 @@ export function $el( el.dataset[key] = (value as Record)[key]; } } else { - // For some tricky attributes, set them the old fashioned way using strings - if (typeof value === "string") { - el.setAttribute(attr, value as string); - } else { el[attr as keyof HTMLElementTagNameMap[T]] = value as HTMLElementTagNameMap[T][keyof HTMLElementTagNameMap[T]]; - } } } desc.shift();