summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-09 22:20:49 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-18 03:44:34 +0530
commit09cc381be6ed4e722e28dbf494458a9b6e6f809d (patch)
tree21169585d867ff3d2277448c9dd8ced848a7bef8 /src
parent067d862e55500d89e8e96637a4678cf25cae478b (diff)
downloadlibdom-09cc381be6ed4e722e28dbf494458a9b6e6f809d.tar.gz
libdom-09cc381be6ed4e722e28dbf494458a9b6e6f809d.tar.bz2
[HTMLCollection && DOMTSHandler && dtd interface] fixes
Diffstat (limited to 'src')
-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;