aboutsummaryrefslogtreecommitdiff
path: root/static/globals.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-11 23:18:11 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 00:09:54 +0200
commit8da01b382ce43802ef164b86cc7e8c714d85a0f3 (patch)
tree85659ee554df65b86e34eaa297dda9d212fa3e57 /static/globals.ts
parentEmbedd fragile strings in sxml in procedures. (diff)
downloadcalp-8da01b382ce43802ef164b86cc7e8c714d85a0f3.tar.gz
calp-8da01b382ce43802ef164b86cc7e8c714d85a0f3.tar.xz
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).
Diffstat (limited to 'static/globals.ts')
-rw-r--r--static/globals.ts2
1 files changed, 1 insertions, 1 deletions
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;
}
}