diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2004-09-28 15:30:48 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2004-09-28 15:30:48 +0000 |
commit | 4439cbc204f23277c40c12f76eac44c849a77bcc (patch) | |
tree | 0358bb48d97bdc2926ba542290931e07570eb2a2 | |
parent | 7a3345a08ce18cb68053e34180f2273520868dab (diff) | |
download | netsurf-4439cbc204f23277c40c12f76eac44c849a77bcc.tar.gz netsurf-4439cbc204f23277c40c12f76eac44c849a77bcc.tar.bz2 |
[project @ 2004-09-28 15:30:48 by tlsa]
Support invalid polygon shape name in image maps.
svn path=/import/netsurf/; revision=1292
-rw-r--r-- | desktop/imagemap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/imagemap.c b/desktop/imagemap.c index b223bcf3f..db79cb960 100644 --- a/desktop/imagemap.c +++ b/desktop/imagemap.c @@ -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) { |