From 00697c7fad138d241c26a670992cee2cbc6045b7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 24 Sep 2012 19:39:20 +0100 Subject: [PATCH] Fix imagemap handling to handle no coords attr when shape attr is not default. --- render/imagemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }