diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-16 15:20:04 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-16 15:20:04 -0300 |
commit | 3a866a0b3d452d4aeb77d8a1e63ba8d5a2913296 (patch) | |
tree | 94cfe468ff624e7b69a3ec76344a3a92052f1f7d /src | |
parent | 9da32b4b2e255801307caa8f62b7dd49aafcf96b (diff) |
html: Attributes: expose attributes in inspect.custom
Diffstat (limited to 'src')
-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 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) { |