« get me outta code hell

html: Tag.contentOnly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-12-30 12:22:41 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-30 13:23:09 -0400
commitd62927e83d772254b2737e11bc66d28d72bc6fa3 (patch)
tree33939c59e3b4c74ca46a7b7250a6e2290338f747
parent5d6d412cb195a316aab1131f96bb1134af4a62bd (diff)
html: Tag.contentOnly
-rw-r--r--src/util/html.js4
1 files changed, 4 insertions, 0 deletions
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);