summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authortreeform <starplant@gmail.com>2020-06-25 14:45:37 -0700
committerGitHub <noreply@github.com>2020-06-25 14:45:37 -0700
commitbaa80ca9d4c5bef4b90aabf4a666b2300c62b5b7 (patch)
tree89686454bc0a7dc70c80d64f0396b340ab2a65e5 /lib
parent13193b2964d76e4656a088782b10365c0ffeceed (diff)
downloadNim-baa80ca9d4c5bef4b90aabf4a666b2300c62b5b7.tar.gz
Add hasAttribute method to dom.nim. (#14814)
See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
Diffstat (limited to 'lib')
-rw-r--r--lib/js/dom.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 48d32fc18..c8e10d0f8 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -1190,6 +1190,7 @@ proc deleteData*(n: Node, start, len: int)
 proc focus*(e: Node)
 proc getAttribute*(n: Node, attr: cstring): cstring
 proc getAttributeNode*(n: Node, attr: cstring): Node
+proc hasAttribute*(n: Node; attr: cstring): bool
 proc hasChildNodes*(n: Node): bool
 proc insertData*(n: Node, position: int, data: cstring)
 proc removeAttribute*(n: Node, attr: cstring)