From 1697d5275524d74731941f32c7dd0c7071366a7b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 15 Aug 2023 20:06:26 -0300 Subject: html: expose Attributes class via html.attributes() --- src/util/html.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/util/html.js b/src/util/html.js index d7d03732..f1511d9d 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -420,6 +420,10 @@ export class Tag { } } +export function attributes(attributes) { + return new Attributes(attributes); +} + export class Attributes { #attributes = Object.create(null); -- cgit 1.3.0-6-gf8a5