From d62927e83d772254b2737e11bc66d28d72bc6fa3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Dec 2023 12:22:41 -0400 Subject: html: Tag.contentOnly --- src/util/html.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util') diff --git a/src/util/html.js b/src/util/html.js index 7e3731f4..7a73e567 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -284,6 +284,10 @@ export class Tag { } } + get contentOnly() { + return this.tagName === '' && this.attributes.blank; + } + #setAttributeFlag(attribute, value) { if (value) { this.attributes.set(attribute, true); -- cgit 1.3.0-6-gf8a5