Area map on image not working

RESOLVED INVALID

Status

()

RESOLVED INVALID
6 years ago
6 years ago

People

(Reporter: Tobbi, Unassigned)

Tracking

19 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 760979 [details]
testcase (zip file)

The area map in the image doesn't appear to be working.

STR:

1. Open the attached testcase.
2. Click the 'Karte anzeigen' link.
3. Click on one of the Gebäude ('A-Gebäude', 'B-Gebäude' etc.)

Expected behaviour:
Loads another screen with room selection.

Current behaviour:
Doesn't appear to be doing anything.

When using the web console to locate the image map, it appears at 0,0 (the left top corner of the screen).
(Reporter)

Updated

6 years ago
OS: All → Windows 7
Hardware: All → x86
"The usemap attribute, if specified, must be a valid hash-name reference to a map element."
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-map-element.html#attr-hyperlink-usemap

so you need to change
	map.setAttribute("usemap","buildings");
to
	map.setAttribute("usemap","#buildings");
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.