From 2bee89bdfb3f710bfe08d616e302d781627cb297 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 30 Dec 2023 12:13:29 -0400 Subject: html: Attributes.has --- src/util/html.js | 4 ++++ 1 file changed, 4 insertions(+) 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]; } -- cgit 1.3.0-6-gf8a5