mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-17 15:04:18 +03:00
[project @ 2004-04-13 13:30:22 by jmb]
Fix my incorrect reading of the spec - shape defaults to rectangle svn path=/import/netsurf/; revision=769
This commit is contained in:
parent
04cdfb6151
commit
408aa68174
@ -257,10 +257,10 @@ struct mapentry *imagemap_addtolist(xmlNode *n, struct mapentry *entry) {
|
||||
if (!(href = (char*)xmlGetProp(n, (const xmlChar*)"href"))) {
|
||||
return entry;
|
||||
}
|
||||
/* no shape -> ignore */
|
||||
/* no shape -> shape is a rectangle */
|
||||
if (!(shape = (char*)xmlGetProp(n, (const xmlChar*)"shape"))) {
|
||||
xmlFree(href);
|
||||
return entry;
|
||||
xmlFree(shape);
|
||||
shape = (char*)xmlMemStrdup("rect");
|
||||
}
|
||||
if (strcasecmp(shape, "default") != 0) {
|
||||
/* no coords -> ignore */
|
||||
|
Loading…
x
Reference in New Issue
Block a user