strange onclick behavior when img is tagged ISMAP

RESOLVED INACTIVE

Status

()

Core
Event Handling
RESOLVED INACTIVE
17 years ago
18 hours ago

People

(Reporter: Beau Burke, Unassigned)

Tracking

Trunk
Future
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

17 years ago
Try the following code:

<A HREF='afadfasdfasdf' onClick='alert("yar");return false'>
<IMG SRC='' ISMAP>
</A>

(obviously, you'll have to insert some src for the image tag)

Clicking the image causes the alert to happen, but the "return false" is 
ignored and a mystery page is loaded (it has the contents "<HTML><
BODY></BODY></HTML>)".   

I would expect that this would behave like a normal link, wherein the 
default action of link-clicking (i.e. loading any page) is cancelled.

I tested with the latest mac build and still get the same behavior.  Please 
contact me with any questions.  Thanks.

Comment 1

17 years ago
Created attachment 62456 [details]
Reduced testcase

Comment 2

17 years ago
Confirming with trunk binaries 20011219xx WinNT, Linux, Mac9.1.
OS : Mac ---> All.

Browser, not engine. Reassigning to Event Handling for further triage.
Assignee: rogerl → joki
Status: UNCONFIRMED → NEW
Component: Javascript Engine → Event Handling
Ever confirmed: true
OS: Mac System 9.x → All
QA Contact: pschwartau → madhur
Hardware: Macintosh → All
Midair.

This is possibly related to bug 111659.
OS: All → Mac System 9.x
Hardware: All → Macintosh

Updated

17 years ago
OS: Mac System 9.x → All
Hardware: Macintosh → All

Updated

17 years ago
Target Milestone: --- → mozilla1.1

Updated

17 years ago
Keywords: 4xp

Updated

16 years ago
QA Contact: madhur → rakeshmishra

Updated

16 years ago
QA Contact: rakeshmishra → trix

Comment 5

15 years ago
.
Assignee: joki → saari
QA Contact: trix → ian

Comment 6

15 years ago
retargeting
Target Milestone: mozilla1.1alpha → Future

Comment 7

13 years ago
*** Bug 297120 has been marked as a duplicate of this bug. ***

Updated

13 years ago
Assignee: saari → events

Comment 8

11 years ago
This works correctly in IE 6.0

Comment 9

11 years ago
It is important to have this fixed for AJAX based code that also aims to work correctly with Javascript disabled browsers - you can spit out different HTML of course, but depending on when it is known that JavaScript is disabled, this maybe somewhat painful.
Assignee: events → nobody
QA Contact: ian → events

Comment 10

18 hours ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 18 hours ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.