mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 06:51:26 +03:00
Fix imagemap handling to handle no coords attr when shape attr is not default.
This commit is contained in:
parent
afa408c750
commit
00697c7fad
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user