From 8da01b382ce43802ef164b86cc7e8c714d85a0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 11 Jun 2022 23:18:11 +0200 Subject: Follow all instances of tagName with toLowerCase. A HTML document returns tag names as upper case, while xml documents return them as lower case (or possibly their original case). --- static/globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/globals.ts') diff --git a/static/globals.ts b/static/globals.ts index 2fc12933..ddc9113e 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -51,7 +51,7 @@ function find_block(uid: uid): ComponentBlock | null { return null; } for (let el of obj.registered) { - if (el.tagName === 'vevent-block') { + if (el.tagName.toLowerCase() === 'vevent-block') { return el as ComponentBlock; } } -- cgit v1.2.3