From 3a866a0b3d452d4aeb77d8a1e63ba8d5a2913296 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Aug 2023 15:20:04 -0300 Subject: html: Attributes: expose attributes in inspect.custom --- 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 4e243f7d..5687bba3 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -572,6 +572,10 @@ export class Attributes { ])), ])); } + + [inspect.custom]() { + return `Attributes <${this.toString() || 'no attributes'}>`; + } } export function resolve(tagOrTemplate) { -- cgit 1.3.0-6-gf8a5