« get me outta code hell

html: expose Attributes class via html.attributes() - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-15 20:06:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-15 20:06:26 -0300
commit1697d5275524d74731941f32c7dd0c7071366a7b (patch)
tree4f93f42d18f7b38e8b15657792806214e5946f45 /src/util
parentc8de5fa3dfc3546a7ca603acee8f24a79f062b26 (diff)
html: expose Attributes class via html.attributes()
Diffstat (limited to 'src/util')
-rw-r--r--src/util/html.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/html.js b/src/util/html.js
index d7d0373..f1511d9 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);