From 2a9572f844e04332d6a448b2f52be8ba2a5e8784 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Wed, 8 Aug 2012 10:56:53 +0100 Subject: Mostly implement HTMLOptionElement, HTMLSelectElement. Enable HTMLOptionElement tests that pass. --- src/html/html_collection.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/html/html_collection.c') 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; -- cgit v1.2.3