Add hasAttribute method to dom.nim. (#14814)

See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
This commit is contained in:
treeform
2020-06-25 14:45:37 -07:00
committed by GitHub
parent 13193b2964
commit baa80ca9d4

View File

@@ -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)