diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-24 19:39:20 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-09-24 19:39:20 +0100 |
commit | 00697c7fad138d241c26a670992cee2cbc6045b7 (patch) | |
tree | 06d33b29a8501adf0d803471c4b90b9480c59fcd | |
parent | afa408c7506842cea88d2a93701ce86f6c87c178 (diff) | |
download | netsurf-00697c7fad138d241c26a670992cee2cbc6045b7.tar.gz netsurf-00697c7fad138d241c26a670992cee2cbc6045b7.tar.bz2 |
Fix imagemap handling to handle no coords attr when shape attr is not default.
-rw-r--r-- | render/imagemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/imagemap.c b/render/imagemap.c index 9663a89f5..bf90443c4 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -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; } } |