about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-07 23:48:46 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-07 23:48:46 +0200
commit22f3172c5cf6dbbcf63d1f249d1794a74ef7b497 (patch)
treeeda2a781204bb762732a1f9c9000b6281aa43fe6
parentb3a88c3da0d5d6f8be737881bd115a497bd8c30c (diff)
downloadchawan-22f3172c5cf6dbbcf63d1f249d1794a74ef7b497.tar.gz
dom: fix area relList element
-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()