mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
dom: fix bug in collection get_next
This commit is contained in:
@@ -60,7 +60,7 @@ pub const HTMLCollection = struct {
|
||||
// TODO deinit parent
|
||||
// Back to the prev's parent.
|
||||
// If prev has no parent, then the loop must stop.
|
||||
parent = parser.nodeParentNode(cur) orelse break;
|
||||
parent = parser.nodeParentNode(prev) orelse break;
|
||||
|
||||
// TODO deinit lastchild
|
||||
lastchild = parser.nodeLastChild(parent);
|
||||
|
||||
Reference in New Issue
Block a user