diff options
author | bptato <nincsnevem662@gmail.com> | 2023-11-13 18:03:19 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-11-13 18:03:19 +0100 |
commit | 41a508fbfa2a01fc20b46e075cd6b610f37cc378 (patch) | |
tree | 3e532a07c871677466206054d8018cc9e3978a22 | |
parent | 39e2ef5207ad13c34de00c8cc998e434eeb42ab7 (diff) | |
download | chawan-41a508fbfa2a01fc20b46e075cd6b610f37cc378.tar.gz |
dom: fix lastElementChild
-rw-r--r-- | src/html/dom.nim | 2 |
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 |