summary refs log tree commit diff stats
path: root/lib/js
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2020-07-14 19:53:41 +0800
committerGitHub <noreply@github.com>2020-07-14 13:53:41 +0200
commitf999f916f31946be3cf8abc485fc07e0d89de9ae (patch)
tree01143a230938a4d0176311674d0cd426e50e262f /lib/js
parent9ed0dbfa6e92f4aa1ebb8ac2ac48af97ae72dbbb (diff)
downloadNim-f999f916f31946be3cf8abc485fc07e0d89de9ae.tar.gz
add missing props,procs (#14978)
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/dom.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim
index 575ec3deb..be676a813 100644
--- a/lib/js/dom.nim
+++ b/lib/js/dom.nim
@@ -196,6 +196,9 @@ type
     innerText*: cstring
     textContent*: cstring
     style*: Style
+    baseURI*: cstring
+    parentElement*: Element
+    isConnected*: bool
 
   Document* = ref DocumentObj
   DocumentObj {.importc.} = object of NodeObj
@@ -224,6 +227,7 @@ type
 
   Element* = ref ElementObj
   ElementObj {.importc.} = object of NodeObj
+    className*: cstring
     classList*: ClassList
     checked*: bool
     defaultChecked*: bool
@@ -1481,6 +1485,7 @@ 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 normalize*(n: Node)
 proc insertData*(n: Node, position: int, data: cstring)
 proc removeAttribute*(n: Node, attr: cstring)
 proc removeAttributeNode*(n, attr: Node)
@@ -1490,6 +1495,13 @@ proc setAttribute*(n: Node, name, value: cstring)
 proc setAttributeNode*(n: Node, attr: Node)
 proc querySelector*(n: Node, selectors: cstring): Element
 proc querySelectorAll*(n: Node, selectors: cstring): seq[Element]
+proc compareDocumentPosition*(n: Node, otherNode:Node): int
+proc lookupPrefix*(n: Node): cstring
+proc lookupNamespaceURI*(n: Node): cstring
+proc isDefaultNamespace*(n: Node): bool
+proc contains*(n: Node): bool
+proc isEqualNode*(n: Node): bool
+proc isSameNode*(n: Node): bool
 
 # Document "methods"
 proc createAttribute*(d: Document, identifier: cstring): Node