summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-08-08 10:56:53 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-08-08 10:56:53 +0100
commit2a9572f844e04332d6a448b2f52be8ba2a5e8784 (patch)
tree49788e878d5ce1aa92bf69c1a095c48d02a6195b /src/html/html_collection.c
parente9f991799dd6ee22dcb8af367c72f58ac31e66ca (diff)
downloadlibdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.gz
libdom-2a9572f844e04332d6a448b2f52be8ba2a5e8784.tar.bz2
Mostly implement HTMLOptionElement, HTMLSelectElement.
Enable HTMLOptionElement tests that pass.
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r--src/html/html_collection.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_collection.c b/src/html/html_collection.c
index 1e43940..f180286 100644
--- a/src/html/html_collection.c
+++ b/src/html/html_collection.c
@@ -214,9 +214,7 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col,
struct dom_node_internal *n = col->root;
dom_exception err;
- while (*node != NULL) {
- assert(n != NULL);
-
+ while (n != NULL) {
if (n->type == DOM_ELEMENT_NODE &&
col->ic(n, col->ctx) == true) {
dom_string *id = NULL;