diff options
author | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-09 22:20:49 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-21 17:37:15 +0530 |
commit | 0800f7b56d496f27283da3e76ae100e88cb0c6e3 (patch) | |
tree | d3c7ede482c47559d783c8b687d7d41079e787a8 /src/html | |
parent | 3129c7484a84589794e437e071aa09888e7cbd4a (diff) | |
download | libdom-0800f7b56d496f27283da3e76ae100e88cb0c6e3.tar.gz libdom-0800f7b56d496f27283da3e76ae100e88cb0c6e3.tar.bz2 |
[HTMLCollection && DOMTSHandler && dtd interface] fixes
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/html_options_collection.c | 4 |
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; |