about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 0999f0bb..acc8ae30 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2069,7 +2069,7 @@ func newDocument*(): Document {.jsctor.} =
     url: newURL("about:blank").get,
     index: -1
   )
-  document.implementation = DOMImplementation(document: result)
+  document.implementation = DOMImplementation(document: document)
   document.contentType = "application/xml"
   return document