Skip to main content

MediaQueryList.EventTarget_inheritance polyfill

import "@mrhenry/core-web/modules/MediaQueryList.prototype.addEventListener";

browsers

  • Android Webview:
    <4.4
  • Chrome:
    <39
  • Edge:
    <16
  • Firefox:
    <55
  • Firefox Android:
    <55
  • IE:
    *
  • Opera:
    <26
  • Opera Android:
    <26
  • Opera Mini:
    *
  • Safari:
    <14.0
  • iOS Safari:
    <14.0
  • Samsung Mobile:
    <4.0

notes

  • Does not implement the full EventTarget interface. Misses 'dispatchEvent', 'capture' option.
  • Does not differentiate between listeners added with different options.
  • onchange property only works in browsers with Object setter support.

dependencies