Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ie8-eventlistener

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ie8-eventlistener

A polyfill for IE8

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

IE8-EventListener

A polyfill for IE8

How can I get it?

IE8-EventListener will be available soon through npm and bower and can be installed with the following command:

npm install ie8-eventlistener
bower install ie8-eventlistener

What is it?

IE8-EventListener strives to add full addEventListener compliance to IE8. Specifically:

  • Listeners are executed in the order in which they were added
  • Modifying the event object in one listener does not affect the event object in other listeners
  • Events not present on window in IE8, but that are supported on document are put on the document but triggered with the window context
  • localStorage Storage Events will appear propery in IE8 with the key, newValue, and oldValue properties correctly set as long as window.storage.setItem is used instead of window.localStorage.setItem. Currently does not support the storageArea and url properties of Storage Events, but those are rarely used.

Why does it exist?

I wanted to try to support Storage Events for use in https://github.com/tejacques/crosstab, and after scouring the web for polyfills was unable to find one which worked correctly. Using the excellent Financial Times polyfill project as a basis, I added support for Storage Events, and brought the behavior of event listeners closer to the spec.

Inspiration

Licence

Because this is based on Johnathan Neal's https://github.com/jonathantneal/EventListener and the Financial Times https://github.com/Financial-Times/polyfill-service, this version is released under the CC0 1.0 Universal License

FAQs

Package last updated on 02 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc