Closed Bug 288945 Opened 19 years ago Closed 19 years ago

clicking links in client-side image maps scrolls the page to the bottom of the imagemap, making it impossible to click some imagemap links

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jdarmochwal, Unassigned)

References

Details

(4 keywords)

Attachments

(3 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050402
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050402

A large image with an image map is inside <a>-tags like this:
   <a href="blah"><img src="image" usemap="map"></a>
(This is probably not good style, but I haven't found anything in the html specs
forbidding it and validator.w3c.org does not complain.)

If you click one of the image map's links, there are two possible cases:
  1) the bottom of the image is on your screen:
    The browser will follow the link.
  2) the bottom of the image is not on your screen:
    The browser will jump to the bottom of the image.

This makes it impossible to follow links at the top of large images.

The jumping behaviour also occurs if there is an image (with no image map)
inside <a>-tags, but the browser will follow the link anyway.


Reproducible: Always

Steps to Reproduce:
1. click the "button" in the testcase

Actual Results:  
Mozilla jumps to the bottom of the image.


Expected Results:  
Mozilla follows the button's link.


This bug is related to bug 105894 (fixing bug 105894 would probably fix this one
as well), but it does not depend on it.

This is a Seamonkey only problem, works for me with Firefox 1.0.2.
Attached file testcase
Depends on: 105894
Attached file Testcase without link around image (obsolete) —
This is almost the same testcase as attachment 179563 [details] except that there is no
extra double quote character and the image is not embedded within a link.
This is almost the same testcase as attachment 179563 [details] except that there is no
extra double quote character and the image is not embedded within a link.
(Sorry, about previous comment and previous testcase: I forgot to select type
of attachment)
Attachment #180900 - Attachment is obsolete: true
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Flags: blocking1.8b4?
Flags: blocking1.8b4? → blocking1.8b4-
*** Bug 306203 has been marked as a duplicate of this bug. ***
*** Bug 295545 has been marked as a duplicate of this bug. ***
Summary: clicking links in client-side image maps scrolls the page → clicking links in client-side image maps scrolls the page to the bottom of the imagemap, making it impossible to click some imagemap links
Keywords: testcase
*** Bug 307727 has been marked as a duplicate of this bug. ***
Not just a Seamonkey bug...

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-CA; rv:1.8b4) Gecko/20050908 Firefox/1.4

(FF 1.5 beta 1)
fixed by bug 105894.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
*** Bug 317438 has been marked as a duplicate of this bug. ***
*** Bug 318757 has been marked as a duplicate of this bug. ***
Keywords: regression
*** Bug 318757 has been marked as a duplicate of this bug. ***
*** Bug 321677 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla1.9alpha → mozilla1.8.1
v.fixed on 1.8.0.1 with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 with testcase in comment #4, click on image takes you to link page.
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: