summaryrefslogtreecommitdiff
path: root/src/html/html_options_collection.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-07-18 13:33:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-07-18 13:33:23 +0100
commit9aae1b6cc3ec89c96f0cdcc173405eef1d5b1c2c (patch)
treea620d0d2f56db44778157ac7925b2b8fa9899e5b /src/html/html_options_collection.c
parentdb5517f4e24d0e7c39a405ce1b363c887196784a (diff)
parentd293e6e7ffdc9224ffba9593f4cc8f73701f2cd5 (diff)
downloadlibdom-9aae1b6cc3ec89c96f0cdcc173405eef1d5b1c2c.tar.gz
libdom-9aae1b6cc3ec89c96f0cdcc173405eef1d5b1c2c.tar.bz2
Merge remote-tracking branch 'origin/rupindersingh/libdom_recovered'
Reviewed-By: Daniel Silverstone <dsilvers@netsurf-browser.org>
Diffstat (limited to 'src/html/html_options_collection.c')
-rw-r--r--src/html/html_options_collection.c4
1 files changed, 2 insertions, 2 deletions
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;