From 09cc381be6ed4e722e28dbf494458a9b6e6f809d Mon Sep 17 00:00:00 2001 From: Rupinder Singh Khokhar Date: Mon, 9 Jun 2014 22:20:49 +0530 Subject: [HTMLCollection && DOMTSHandler && dtd interface] fixes --- src/html/html_options_collection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html/html_options_collection.c') diff --git a/src/html/html_options_collection.c b/src/html/html_options_collection.c index 85001ad..3e06915 100644 --- a/src/html/html_options_collection.c +++ b/src/html/html_options_collection.c @@ -190,13 +190,13 @@ dom_exception dom_html_options_collection_named_item(dom_html_options_collection /* No children and siblings */ struct dom_node_internal *parent = n->parent; - while (parent != col->base.root && + while (n != col->base.root && n == parent->last_child) { n = parent; parent = parent->parent; } - if (parent == col->base.root) + if (n == col->base.root) n = NULL; else n = n->next; -- cgit v1.2.3