« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/html.js')
-rw-r--r--src/util/html.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/html.js b/src/util/html.js
index 1a5d1a0..040714e 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -487,6 +487,9 @@ export class Tag {
       if (this.attributes.has(attribute)) {
         const value = this.attributes.get(attribute);
 
+        if (!value) continue;
+        if (Array.isArray(value) && empty(value)) continue;
+
         let string;
         let suffix = '';