New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

classlist-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classlist-polyfill - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

changelog.md
# Changelog
## 1.0.3
* Add support for missing SVGElement.classList in IE
## 1.0.2
* Fix issue with `self` not being defined in CommonJS

2

package.json
{
"name": "classlist-polyfill",
"version": "1.0.2",
"version": "1.0.3",
"description": "MDN's ClassList Polyfill",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -5,2 +5,4 @@ # classlist-polyfill

Eligrey's [classList.js](https://github.com/eligrey/classList.js)
Usage:

@@ -7,0 +9,0 @@

@@ -21,3 +21,5 @@ /*

// Full polyfill for browsers with no classList support
if (!("classList" in document.createElement("_"))) {
// Including IE < Edge missing SVGElement.classList
if (!("classList" in document.createElement("_"))
|| document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg","g"))) {

@@ -24,0 +26,0 @@ (function (view) {

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