diff options
-rw-r--r-- | src/util/html.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/html.js b/src/util/html.js index 1a5d1a00..040714ef 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 = ''; |