about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-19 15:37:54 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-19 15:38:17 +0200
commitda019595a59a0bfa9d82e0faea915f7d739aa01b (patch)
tree764cd568e584a98dcfddd5d21a7246b8fe30313f
parentbb2d3724848d6ac5a34308a4bbaca050aac0e6c5 (diff)
downloadchawan-da019595a59a0bfa9d82e0faea915f7d739aa01b.tar.gz
dom: fix regression
-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