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

jsdom

Package Overview
Dependencies
Maintainers
1
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.1.17 to 0.1.18

10

lib/jsdom/level2/events.js

@@ -290,3 +290,3 @@ /* DOM Level2 Events implemented as described here:

var ret = level1.call(this, newChild);
if (this.nodeType == 1) {
if (this.nodeType == 1 && this.ownerDocument) {
var ev = this.ownerDocument.createEvent("MutationEvents");

@@ -303,5 +303,7 @@ ev.initMutationEvent("DOMNodeInserted", true, false, this, null, null, null, null);

core.Node.prototype.removeChild = function(oldChild) {
var ev = this.ownerDocument.createEvent("MutationEvents");
ev.initMutationEvent("DOMNodeRemoved", true, false, this, null, null, null, null);
oldChild.dispatchEvent(ev);
if (this.ownerDocument) {
var ev = this.ownerDocument.createEvent("MutationEvents");
ev.initMutationEvent("DOMNodeRemoved", true, false, this, null, null, null, null);
oldChild.dispatchEvent(ev);
}
return level1.call(this, oldChild);

@@ -308,0 +310,0 @@ };

2

package.json
{
"name": "jsdom",
"version": "0.1.17",
"version": "0.1.18",
"description": "CommonJS implementation of the DOM intended to be platform independent and as minimal/light as possible while completely adhering to the w3c DOM specifications.",

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

Sorry, the diff of this file is not supported yet

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