diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-11 23:18:11 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-12 00:09:54 +0200 |
commit | 8da01b382ce43802ef164b86cc7e8c714d85a0f3 (patch) | |
tree | 85659ee554df65b86e34eaa297dda9d212fa3e57 /static/globals.ts | |
parent | Embedd fragile strings in sxml in procedures. (diff) | |
download | calp-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.ts | 2 |
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; } } |