From 86be9294a09f947adcbda35c7a0050f3c087c918 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 1 Jan 2024 20:25:17 -0400 Subject: html: fix mutable: false not actually receiving original attributes --- src/util/html.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/util/html.js b/src/util/html.js index 9221256d..b5f6e70f 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1228,11 +1228,12 @@ export class Template { return blankAttributes(); } - if ( - providedValue instanceof Attributes && - description.mutable - ) { - return providedValue.clone(); + if (providedValue instanceof Attributes) { + if (description.mutable) { + return providedValue.clone(); + } else { + return providedValue; + } } return new Attributes(providedValue); -- cgit 1.3.0-6-gf8a5