DOM module: add more missing stuff

This commit is contained in:
Araq
2019-02-07 15:01:36 +01:00
parent b8f4ff8b9f
commit 3dc270eee5

View File

@@ -1075,6 +1075,7 @@ proc setTimeout*(w: Window, function: proc (), pause: int): ref Interval
proc stop*(w: Window)
proc requestAnimationFrame*(w: Window, function: proc (time: float)): int
proc cancelAnimationFrame*(w: Window, id: int)
proc onpopstate*(w: Window, ev: Event)
# Node "methods"
proc appendData*(n: Node, data: cstring)
@@ -1207,6 +1208,8 @@ proc encodeURIComponent*(uri: cstring): cstring {.importc, nodecl.}
proc isFinite*(x: BiggestFloat): bool {.importc, nodecl.}
proc isNaN*(x: BiggestFloat): bool {.importc, nodecl.}
proc newEvent*(name: cstring): Event {.importcpp: "new Event(@)", constructor.}
proc getElementsByClass*(n: Node; name: cstring): seq[Node] {.
importcpp: "#.getElementsByClassName(#)", nodecl.}