From baa80ca9d4c5bef4b90aabf4a666b2300c62b5b7 Mon Sep 17 00:00:00 2001 From: treeform Date: Thu, 25 Jun 2020 14:45:37 -0700 Subject: [PATCH] Add hasAttribute method to dom.nim. (#14814) See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute --- lib/js/dom.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 48d32fc186..c8e10d0f8e 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)