diff options
Diffstat (limited to 'src/util/html.js')
-rw-r--r-- | src/util/html.js | 4 |
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]; } |