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

element-closest

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-closest - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.0.1 (2016-04-08)
- Fixed an issue referencing the current nodeType
# 2.0.0 (2016-04-07)

@@ -2,0 +6,0 @@

2

closest.js

@@ -21,3 +21,3 @@ // element-closest | CC0-1.0 | github.com/jonathantneal/closest

while (element && element.nodeType !== 11) {
while (element && element.nodeType === 1) {
if (element.matches(selector)) {

@@ -24,0 +24,0 @@ return element;

{
"name": "element-closest",
"version": "2.0.0",
"version": "2.0.1",
"description": "Return the closest element matching a selector up the DOM tree",

@@ -5,0 +5,0 @@ "main": "closest.js",

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