Cope with missing/empty href attribute

This commit is contained in:
John-Mark Bell 2012-08-30 23:58:06 +01:00
parent 5c53f01ead
commit ba7fba824d
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
}
exc = dom_element_get_attribute(n, corestring_dom_href, &href);
if (exc != DOM_NO_ERR) {
if (exc != DOM_NO_ERR || href == NULL) {
/* No href="" attribute, skip this element */
goto ok_out;
}