Index: gtkhtml/ChangeLog
===================================================================
--- gtkhtml/ChangeLog	(revision 8754)
+++ gtkhtml/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-02-25  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #467791
+
+	* htmlengine.c: (element_parse_a):
+	Accept "shape", "coords" attributes only when inside "map" element.
+
 2008-02-19  Milan Crha  <mcrha@redhat.com>
 
 	** Fix for bug #391730
Index: gtkhtml/htmlengine.c
===================================================================
--- gtkhtml/htmlengine.c	(revision 8754)
+++ gtkhtml/htmlengine.c	(working copy)
@@ -1788,12 +1788,11 @@
 	if (id == NULL && html_element_get_attr (element, "name", &value))
 		id = g_strdup (value);
 
-	if (html_element_get_attr (element, "shape", &type)
-	    || html_element_get_attr (element, "coords", &coords)) {
+	if (e->map && (html_element_get_attr (element, "shape", &type) || html_element_get_attr (element, "coords", &coords))) {
 		HTMLShape *shape;
 
 		shape = html_shape_new (type, coords, url, target);
-		if (shape && e->map)
+		if (shape)
 			html_map_add_shape (e->map, shape);
 	}
 
