From 33c500e2379aa8bacd1eed6d07eb5a9af8c324a3 Mon Sep 17 00:00:00 2001 From: paulgo Date: Tue, 12 Dec 2023 09:52:30 -0500 Subject: [PATCH] Force elements to accept attributes --- Raw.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Raw.ts b/Raw.ts index 68573ce..d523223 100644 --- a/Raw.ts +++ b/Raw.ts @@ -476,8 +476,8 @@ class Raw extends (() => Object as any as RawElements)() // JavaScript numbers that are specified in the width and height properties // are injected as HTML attributes rather than assigned as CSS properties. if (value && - (name === "width" || name === "height") && - typeof value === "number") + (name === "width" || name === "height") && typeof value === "number" || + (e as Element).tagName === "META") { (e as Element).setAttribute(name, value.toString()); }