From efe22f73ff21257410d8c13ad9c6db9b54540c09 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 31 Dec 2023 22:25:07 -0400 Subject: html: Attributes.clone --- 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 dea346c5..5144a31b 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -600,6 +600,10 @@ export class Attributes { this.attributes = attributes; } + clone() { + return new Attributes(this); + } + set attributes(value) { this.#attributes = Object.create(null); -- cgit 1.3.0-6-gf8a5