summaryrefslogtreecommitdiff
path: root/src/html/html_collection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/html_collection.c')
-rw-r--r--src/html/html_collection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/html_collection.c b/src/html/html_collection.c
index 43a26c5..90e35a0 100644
--- a/src/html/html_collection.c
+++ b/src/html/html_collection.c
@@ -219,6 +219,7 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col,
if (n->type == DOM_ELEMENT_NODE &&
col->ic(n, col->ctx) == true) {
dom_string *id = NULL;
+ dom_string *id_name = NULL;
err = _dom_element_get_id((struct dom_element *) n,
&id);
@@ -238,7 +239,6 @@ dom_exception dom_html_collection_named_item(dom_html_collection *col,
dom_string_unref(id);
/* Check for Name attr if id not matched/found */
- dom_string *id_name = NULL;
err = _dom_element_get_attribute((dom_element *)n,
doc->memoised[hds_name], &id_name);
if(err != DOM_NO_ERR) {