diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html/dom.nim | 3 |
1 files changed, 2 insertions, 1 deletions
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) |