diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-13 12:09:16 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-13 12:09:16 +0200 |
commit | 9d4ce0b515fd71dc38fb24db77be9572ebf0df64 (patch) | |
tree | 3d0b005c4ab79577fe4847210e78a54f310dbebf /static/globals.ts | |
parent | Cleanup of zic. (diff) | |
parent | Replace some .tagName with instanceof. (diff) | |
download | calp-9d4ce0b515fd71dc38fb24db77be9572ebf0df64.tar.gz calp-9d4ce0b515fd71dc38fb24db77be9572ebf0df64.tar.xz |
Merge html-validator.
Adds an HTML validator which checks the soundness of our generated
document, both before and after javascript is ran (thanks to selenium).
This merge also fixes the initial problems, meaning that the HTML should
validate as of this commit.
Diffstat (limited to '')
-rw-r--r-- | static/globals.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/globals.ts b/static/globals.ts index ddc9113e..d90a3681 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -51,8 +51,8 @@ function find_block(uid: uid): ComponentBlock | null { return null; } for (let el of obj.registered) { - if (el.tagName.toLowerCase() === 'vevent-block') { - return el as ComponentBlock; + if (el instanceof ComponentBlock) { + return el; } } // throw 'Popup not fonud'; |