Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metal is using a deprecated Web API #162

Closed
fernandosouza opened this issue Sep 28, 2016 · 2 comments
Closed

Metal is using a deprecated Web API #162

fernandosouza opened this issue Sep 28, 2016 · 2 comments

Comments

@fernandosouza
Copy link
Contributor

Metal uses Event.initEvent() to initialize the value of an event created using document.createEvent() but Event.initEvent() is now deprecated.

https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent

We should drop it in the future. Right?

@mairatma
Copy link
Contributor

Interesting, I didn't know this was deprecated. The problem is that we need this to work on all browsers, and the alternative given to this api is one that apparently works only on IE >= 11 (at least that's what the compatibility table says on the page MDN links to for it: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events). If that's the case then we need to keep using this until we can drop IE9 and IE10.

@mairatma
Copy link
Contributor

I'll close this since it seems like we need to keep using this api for all browsers to work. Besides, this function is only used by dom.triggerEvent, which in turn is only used by tests, so this should be fine for now :)

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

No branches or pull requests

2 participants