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
commit baa80ca9d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)