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();