Closed Bug 95953 Opened 25 years ago Closed 24 years ago

dispatchEvent doesn't set target (correctly)

Categories

(Core :: DOM: Events, defect)

defect
Not set
major

Tracking

()

VERIFIED WORKSFORME
mozilla0.9.9

People

(Reporter: andorxor, Assigned: joki)

Details

(Keywords: dom2)

Attachments

(1 file)

EventTarget's dispatchEvent should set the target property. The specification at http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget- dispatchEvent states: "This method allows the dispatch of events into the implementations event model (...) The target of the event is the EventTarget on which dispatchEvent is called." Currently dispatchEvent doesn't set the target correctly (at least for custom events). See the attached testcase.
Attached file Testcase —
Keywords: dom2
Confirmed using Mac/2001082408. No obvious duplicate.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
I haven't check this in a while but this works for me on my current build. target and currentTarget match as expected.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
verifying on build 2002-02-22-03-trunk windows 98
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: