Closed Bug 76352 Opened 24 years ago Closed 24 years ago

createEvent creates a KeyEvent for any event type

Categories

(Core :: DOM: Events, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 35377

People

(Reporter: vladimire, Assigned: joki)

Details

Attachments

(1 file)

event = document.createEvent("MouseEvent"); alert(event); The following code shows "object KeyEvent" In the alert box. I'll attach the testcase
Attached file testcase (deleted) —
OS: Windows 98 → All
The test case shows a return of null for me in Moz 0.8.1 on Linux. According to the spec, the string passed to createEvent() should be plural, by the way: createEvent("MouseEvents"), createEvent("UIEvents") etc.
It doesn't really create a KeyEvent, that's just the javascript class typing at the moment, dupe of 35377. It has the appropriate properties. The plural string part is in 77251. *** This bug has been marked as a duplicate of 35377 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verifying duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: