Add rectangle as alias for "rect"

svn path=/trunk/netsurf/; revision=4798
This commit is contained in:
John Mark Bell 2008-07-29 09:48:08 +00:00
parent e3eb293f83
commit a66415564f

View File

@ -383,7 +383,8 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry)
}
/* extract area shape */
if (strcasecmp(shape, "rect") == 0) {
if (strcasecmp(shape, "rect") == 0 ||
strcasecmp(shape, "rectangle") == 0) {
new_map->type = IMAGEMAP_RECT;
}
else if (strcasecmp(shape, "circle") == 0) {