Closed Bug 141883 Opened 23 years ago Closed 23 years ago

image map coordinates not correctly recognized

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: pnprice, Assigned: bzbarsky)

References

()

Details

(Keywords: compat)

Attachments

(1 file)

The problem web site shows a map with different clickable areas specified by commands like <area SHAPE="POLY" COORDS="509,280,509,272,531,255,553,254,575,231,587,236,597,234,606,254,591,269" HREF="counties/txt_21.html" ALT="Kentucky"> No matter where the map is clicked, the browser clicks through to the same page (always Kentucky). Possibly related: on the map, the "Kentucky" region is defined twice. Also possibly related: Kentucky is the first defined region. Works fine in other browsers.
Attached file Minimal testcase
The site has <area shape="area"> tags. This is not a valid value for the "shape" attribute and we fall back on shape="default" which means "this area covers the whole imagemap. The shape="area" tags alternate with identical tags that have shape="poly" and which correctly define the regions....
It probably makes the most sense to just ignore <area> tags with unknown "shape" values....
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: compat
OS: MacOS X → All
Hardware: Macintosh → All
imagemaps are layout
Assignee: pavlov → attinasi
Component: Image: Layout → Layout
QA Contact: tpreston → petersen
Changing QA Contact
QA Contact: petersen → amar
Priority: -- → P3
Target Milestone: --- → Future
Depends on: 162546
taking, since I have the fix (in bug 162546).
Assignee: attinasi → bzbarsky
fix checked in to trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: