about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-11-13 18:03:19 +0100
committerbptato <nincsnevem662@gmail.com>2023-11-13 18:03:19 +0100
commit41a508fbfa2a01fc20b46e075cd6b610f37cc378 (patch)
tree3e532a07c871677466206054d8018cc9e3978a22
parent39e2ef5207ad13c34de00c8cc998e434eeb42ab7 (diff)
downloadchawan-41a508fbfa2a01fc20b46e075cd6b610f37cc378.tar.gz
dom: fix lastElementChild
-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 b883fd42..8834f4e5 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -1668,7 +1668,7 @@ func firstElementChild*(node: Node): Element {.jsfget.} =
   return nil
 
 func lastElementChild*(node: Node): Element {.jsfget.} =
-  for child in node.elementList:
+  for child in node.elementList_rev:
     return child
   return nil