UNPKG

@kcjpop/x-browser-compat

Version:

A Web Component to display browser compatibility data

1 lines • 1.51 kB
{"mdn_url":"https://developer.mozilla.org/docs/Web/API/Event/currentTarget","source_file":"api/Event.json","spec_url":"https://dom.spec.whatwg.org/#ref-for-dom-event-currenttargetâ‘¡","status":{"deprecated":false,"experimental":false,"standard_track":true},"support":{"chrome":{"version_added":"1"},"chrome_android":{"version_added":"18"},"deno":{"version_added":"1.0"},"edge":{"version_added":"12"},"firefox":{"version_added":"1"},"firefox_android":{"version_added":"4"},"ie":[{"version_added":"9"},{"notes":"On Internet Explorer 6 through 8, the event model is different. Event listeners are attached with the non-standard <a href='https://developer.mozilla.org/docs/Web/API/EventTarget/attachEvent'><code>EventTarget.attachEvent</code></a> method. In this model, there is no equivalent to <code>event.currentTarget</code> and <code>this</code> is the global object. One solution to emulate the <code>event.currentTarget</code> feature is to wrap your handler in a function calling the handler using <code>Function.prototype.call</code> with the element as a first argument. This way, <code>this</code> will be the expected value.","partial_implementation":true,"version_added":"6","version_removed":"9"}],"nodejs":{"version_added":"14.5.0"},"oculus":{"version_added":"5.0"},"opera":{"version_added":"7"},"opera_android":{"version_added":"10.1"},"safari":{"version_added":"1"},"safari_ios":{"version_added":"1"},"samsunginternet_android":{"version_added":"1.0"},"webview_android":{"version_added":"4.4"}}}