From 6447a9ed99e0bc359c146517f47f298e75469a60 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 31 Dec 2023 22:52:35 -0400 Subject: html: aggressively skip blank nice attributes when inspecting tag --- src/util/html.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') diff --git a/src/util/html.js b/src/util/html.js index 1a5d1a00..040714ef 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -487,6 +487,9 @@ export class Tag { if (this.attributes.has(attribute)) { const value = this.attributes.get(attribute); + if (!value) continue; + if (Array.isArray(value) && empty(value)) continue; + let string; let suffix = ''; -- cgit 1.3.0-6-gf8a5