diff options
Diffstat (limited to 'src/util/html.js')
-rw-r--r-- | src/util/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/html.js b/src/util/html.js index f0c7bfdf..c7395fbf 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -242,7 +242,7 @@ export class Tag { this.selfClosing && !(value === null || value === undefined || - !Boolean(value) || + !value || Array.isArray(value) && value.filter(Boolean).length === 0) ) { throw new Error(`Tag <${this.tagName}> is self-closing but got content`); |