From eff7f871fd14038b60b183962d040c9a135dcde6 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 7 Jul 2012 19:48:21 +0100 Subject: HTMLCollection: Fix node walker to not stop after left-tree of root --- src/html/html_collection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/html_collection.c b/src/html/html_collection.c index 7532742..7fe6d06 100644 --- a/src/html/html_collection.c +++ b/src/html/html_collection.c @@ -135,7 +135,7 @@ dom_exception dom_html_collection_get_length(dom_html_collection *col, parent = parent->parent; } - if (parent == col->root) + if (node == col->root) node = NULL; else node = node->next; @@ -184,7 +184,7 @@ dom_exception dom_html_collection_item(dom_html_collection *col, parent = parent->parent; } - if (parent == col->root) + if (n == col->root) n = NULL; else n = n->next; -- cgit v1.2.3