Fix imagemap handling to handle no coords attr when shape attr is not default.

This commit is contained in:
Michael Drake 2012-09-24 19:39:20 +01:00
parent afa408c750
commit 00697c7fad

View File

@ -450,7 +450,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
/* If not 'default' and there's no 'coords' give up */
exc = dom_element_get_attribute(n, corestring_dom_coords,
&coords);
if (exc != DOM_NO_ERR) {
if (exc != DOM_NO_ERR || coords == NULL) {
goto ok_out;
}
}