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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: rvj, Assigned: joki)
Details
Attachments
(1 file)
|
261 bytes,
text/html
|
Details |
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>
Updated•25 years ago
|
Assignee: joki → jst
Component: Event Handling → DOM Level 0
QA Contact: janc → desale
Comment 1•25 years ago
|
||
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.
Marking confirmed. In 4.x, neither image is clickable, but in Mozilla the lower
one is.
| Assignee | ||
Comment 5•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•