Closed Bug 39470 Opened 25 years ago Closed 25 years ago

javascript problem when mouseover handler is in anchor tag

Categories

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

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sean, Assigned: joki)

Details

(Keywords: testcase, Whiteboard: [nsbeta2+])

Attachments

(1 file)

When each of the following anchor tags is clicked, only one alert should appear. In the second and third examples though mozilla displays the alerts that should not appear. <A HREF="javascript: alert('this should NOT appear')" ONCLICK="alert('ONCLICK handler fired'); return false"> Anchor without ONMOUSEOVER handler </A> <A HREF="javascript: alert('this should NOT appear')" ONMOUSEOVER="return false;" ONCLICK="alert('ONCLICK handler fired'); return false"> Anchor with ONMOUSEOVER handler: 'return false;' </A> <A HREF="javascript: alert('this should NOT appear')" ONMOUSEOVER="return true;" ONCLICK="alert('ONCLICK handler fired'); return false"> Anchor with ONMOUSEOVER handler: 'return true;' </A>
Attached file test case with 3 anchor links (deleted) —
added 4xp and testcase keywords
Keywords: 4xp, testcase
Nominating nsbeta2. We have to start drawing a line on DOM0 backward compatibility; these bugs are supposed to be a high priority for nsbeta2 per the beta2 criteria.
Keywords: nsbeta2
Tom, could you take a look at this?
Assignee: jst → joki
Setting to [nsbeta2+]. We have to get these basic JS 1.0 DOM0 events and javascript: URLs executing the correct JavaScript code for nsbeta2; otherwise nsbeta2 won't serve to expose the other bugs contained within that code in time to be fixed for FCS.
Whiteboard: [nsbeta2+]
Okay, I know what this is. I saw this today in a bug from mjudge. I'll talk to him and have a fix in asap.
The fix for this went in a few days back. Sorry, forgot to mark this fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Tested with 2000-060809. Marking VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: