« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/html.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/html.js b/src/util/html.js
index dd6c3b05..ecc2b065 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -673,6 +673,10 @@ export class Attributes {
       return attributes.map(item => this.#addMultipleAttributes(item));
     }
 
+    if (attributes instanceof Attributes) {
+      return this.#addMultipleAttributes(attributes.attributes);
+    }
+
     if (attributes instanceof Template) {
       const resolved = Template.resolve(attributes);
       isAttributesAdditionSingletValue(resolved);
@@ -1379,6 +1383,7 @@ export const isAttributesAdditionPair = pair => {
 export const isAttributesAdditionSingletValue =
   oneOf(
     validateInstanceOf(Template),
+    validateInstanceOf(Attributes),
     validateAllPropertyValues(isAttributeValue),
     looseArrayOf(value => isAttributesAdditionSingletValue(value)));