diff options
-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 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); |