diff options
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 |
commit | 1697d5275524d74731941f32c7dd0c7071366a7b (patch) | |
tree | 4f93f42d18f7b38e8b15657792806214e5946f45 | |
parent | c8de5fa3dfc3546a7ca603acee8f24a79f062b26 (diff) |
html: expose Attributes class via html.attributes()
-rw-r--r-- | src/util/html.js | 4 |
1 files changed, 4 insertions, 0 deletions
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); |