From 32bfbeab829aad7ec2286f56bad7cd26690e9978 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Aug 2023 15:16:26 -0300 Subject: html: tags: allow passing attributes to tags() This is to control e.g. joinChildren. --- src/util/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/html.js b/src/util/html.js index f1511d9d..19a7d126 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -177,8 +177,8 @@ export function tag(tagName, ...args) { return new Tag(tagName, attributes, content); } -export function tags(content) { - return new Tag(null, null, content); +export function tags(content, attributes = null) { + return new Tag(null, attributes, content); } export class Tag { -- cgit 1.3.0-6-gf8a5