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

jsdom

Package Overview
Dependencies
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdom - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

10

lib/jsdom/browser/index.js

@@ -59,2 +59,10 @@ var http = require('http'),

function matchesDontThrow(el, selector) {
try {
return el.matchesSelector(selector);
} catch (e) {
return false;
}
}
/**

@@ -244,3 +252,3 @@ * Creates a window having a document. The document can be passed as option,

forEach.call(sheet.cssRules, function (ruleSet) {
if (node.matchesSelector(ruleSet.selectorText)) {
if (matchesDontThrow(node, ruleSet.selectorText)) {
forEach.call(ruleSet.style, function (property) {

@@ -247,0 +255,0 @@ cs.setProperty(property, ruleSet.style.getPropertyValue(property), ruleSet.style.getPropertyPriority(property));

2

package.json
{
"name": "jsdom",
"version": "0.3.0",
"version": "0.3.1",
"description": "A JavaScript implementation of the W3C DOM",

@@ -5,0 +5,0 @@ "keywords": [

@@ -279,3 +279,3 @@ # jsdom

level2/html 695/695 100%
level2/style 7/7 100%
level2/style 8/8 100%
level2/extra 4/4 100%

@@ -293,3 +293,3 @@ level2/events 24/24 100%

------------------------------------------------------
TOTALS: 6/2558 failed; 99% success
TOTALS: 6/2559 failed; 99% success
```

@@ -296,0 +296,0 @@

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