Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

initEvent methods missing in 3.x #10

Open
ProdigySim opened this issue Jan 8, 2014 · 2 comments
Open

initEvent methods missing in 3.x #10

ProdigySim opened this issue Jan 8, 2014 · 2 comments

Comments

@ProdigySim
Copy link
Contributor

The event creation helpers, such as "initMouseEvent" and "initEvent" are missing in 3.x. While these APIs might be deprecated, they're needed for backwards compatibility with older browsers.

You can find their specification here.
http://www.w3.org/TR/DOM-Level-2-Events/events.html

The standard pattern is

var myEvent = document.createEvent('MyEventType');
myEvent.initEvent(...);
document.dispatchEvent(myEvent);

So ideally the parameter and return types of those methods should match up in a reasonable way.

@n9
Copy link

n9 commented Jan 14, 2014

I would suggest to create another assembly that would contain compatibility code and deprecated members. (Or maybe to create a compatibility fork.)

@erik-kallen
Copy link
Contributor

I thought these method only worked in a few versions of Firefox, which was the impression I got from MDN (never used them myself), but apparently that was wrong. I re-added them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants