mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
[project @ 2004-09-28 15:30:48 by tlsa]
Support invalid polygon shape name in image maps. svn path=/import/netsurf/; revision=1292
This commit is contained in:
parent
7a3345a08c
commit
4439cbc204
@ -278,7 +278,9 @@ struct mapentry *imagemap_addtolist(xmlNode *n, struct mapentry *entry) {
|
||||
else if (strcasecmp(shape, "circle") == 0) {
|
||||
new_map->type = IMAGEMAP_CIRCLE;
|
||||
}
|
||||
else if (strcasecmp(shape, "poly") == 0) {
|
||||
else if (strcasecmp(shape, "poly") == 0 ||
|
||||
strcasecmp(shape, "polygon") == 0) {
|
||||
/* polygon shape name is not valid but sites use it */
|
||||
new_map->type = IMAGEMAP_POLY;
|
||||
}
|
||||
else if (strcasecmp(shape, "default") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user