Add hasAttribute method to dom.nim. (#14814)
See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
This commit is contained in:
parent
13193b2964
commit
baa80ca9d4
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue