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 7e332574..961dedd8 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2588,7 +2588,7 @@ proc newHTMLElement*(document: Document; localName: CAtom;
   of TAG_AREA:
     let area = HTMLAreaElement()
     let localName = document.toAtom(satRel)
-    area.relList = DOMTokenList(element: result, localName: localName)
+    area.relList = DOMTokenList(element: area, localName: localName)
     result = area
   else:
     result = HTMLElement()