From d0addf4a543689994d3f7d2f9a2d290b1a8dff85 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 8 Mar 2023 09:11:43 +0100 Subject: dom: set document url in constructor --- src/html/dom.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/html/dom.nim b/src/html/dom.nim index 6d50c460..8b0019b1 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1377,7 +1377,8 @@ func newHTMLElement*(document: Document, localName: string, namespace = Namespac func newDocument*(): Document {.jsctor.} = result = Document( - nodeType: DOCUMENT_NODE + nodeType: DOCUMENT_NODE, + url: newURL("about:blank") ) result.document = result result.implementation = DOMImplementation(document: result) -- cgit 1.4.1-2-gfad0