Closed Bug 39722 Opened 25 years ago Closed 25 years ago

inconsisent event handling with null HREF in A tag

Categories

(Core :: DOM: Core & HTML, defect, P3)

Other
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rvj, Assigned: joki)

Details

Attachments

(1 file)

if an A tag is defined with a null reference and the onmouseclick is set to 'return false' the click is ignored. If however an onmouseover event is also defined with or without 'return false', the browser will navigate to the parent directory. The null reference is required for backwards compatibility. The following works correctly - the click event is ignored <A href="" onclick="return false" ><IMG src="image.gif" ></A> However the following incorrectly navigates to the parent directory. <A href="" onclick="return false" onmouseover="return false"><IMG src="image.gif" ></A>
Assignee: joki → jst
Component: Event Handling → DOM Level 0
QA Contact: janc → desale
Passing to the "DOM Level 0" component, responsible for onclick and other 4.x-compatible js. rvj@rolemodels.net, a small testcase using that code would be useful. You can use the "URL" field, or use the _Create a new attachment_ link and upload a testcase file to bugzilla.
Tom, could you have a look at this?
Assignee: jst → joki
Marking confirmed. In 4.x, neither image is clickable, but in Mozilla the lower one is.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: 4xp
This is a dupe of a previous bug that was fixed a couple of weeks ago. I'm just going to mark this fixed rather than spend time finding the old one.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified with 2000-07-07-10.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: