From 1ffe1134501210e23e71e0f23099c2005edd98c9 Mon Sep 17 00:00:00 2001 From: treeform Date: Sun, 21 Jun 2020 11:41:24 -0700 Subject: [PATCH] Export fields from the Selection object. (#14752) See: https://developer.mozilla.org/en-US/docs/Web/API/Selection --- lib/js/dom.nim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 38ec18a618..48d32fc186 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -107,6 +107,13 @@ type timing*: PerformanceTiming Selection* {.importc.} = ref object ## see `docs`_ + anchorNode*: Node + anchorOffset*: int + focusNode*: Node + focusOffset*: int + isCollapsed*: bool + rangeCount*: int + `type`*: cstring LocalStorage* {.importc.} = ref object