summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authortreeform <starplant@gmail.com>2020-06-21 11:41:24 -0700
committerGitHub <noreply@github.com>2020-06-21 20:41:24 +0200
commit1ffe1134501210e23e71e0f23099c2005edd98c9 (patch)
tree29c8195c1be67762ea91a386e4cf76eb5f8939cb /lib/js
parent3ba0c30758e1044aba11bb908a7d83de7ea215bc (diff)
downloadNim-1ffe1134501210e23e71e0f23099c2005edd98c9.tar.gz
Export fields from the Selection object. (#14752)
See: https://developer.mozilla.org/en-US/docs/Web/API/Selection
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/dom.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 38ec18a61..48d32fc18 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -107,6 +107,13 @@ type
     timing*: PerformanceTiming
 
   Selection* {.importc.} = ref object ## see `docs<https://developer.mozilla.org/en-US/docs/Web/API/Selection>`_
+    anchorNode*: Node
+    anchorOffset*: int
+    focusNode*: Node
+    focusOffset*: int
+    isCollapsed*: bool
+    rangeCount*: int
+    `type`*: cstring
 
   LocalStorage* {.importc.} = ref object