From e8ab10d39ed89ea1f29f7b3d1de2e7918e28a42f Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 17 Jan 2024 01:34:59 +0100 Subject: dom: fix invalid object conversion defect --- src/html/dom.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/dom.nim b/src/html/dom.nim index aa8fb982..bf5c882b 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2497,7 +2497,7 @@ proc reflectAttrs(element: Element, name, value: string) = let anchor = HTMLAnchorElement(element) anchor.reflect_domtoklist "rel", relList of TAG_AREA: - let area = HTMLAnchorElement(element) + let area = HTMLAreaElement(element) area.reflect_domtoklist "rel", relList else: discard -- cgit 1.4.1-2-gfad0