« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/html.js')
-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);