« get me outta code hell

html: Attributes.has - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-12-30 12:13:29 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-12-30 12:29:52 -0400
commit2bee89bdfb3f710bfe08d616e302d781627cb297 (patch)
tree511e052872c62e4ac5739568266d61a061b69924 /src/util
parentf3e06dc50d778353bfdc2103bf85e0596e6d71a3 (diff)
html: Attributes.has
Diffstat (limited to 'src/util')
-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 6124b35d..f13f8c29 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -491,6 +491,10 @@ export class Attributes {
     return value;
   }
 
+  has(attribute) {
+    return attribute in this.#attributes;
+  }
+
   get(attribute) {
     return this.#attributes[attribute];
   }