Socket
Socket
Sign inDemoInstall

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.2.7 to 0.2.8

8

lib/jsdom/level1/core.js

@@ -749,4 +749,7 @@ /*

if (data) {
text += " - More:\n" + data.toString();
if (data.exception) {
text = data.exception.stack;
} else {
text += ' - More:\n' + data;
}
}

@@ -1004,3 +1007,2 @@

};
return;
}

@@ -1007,0 +1009,0 @@ if (this._ownerDocument) {

{
"name": "jsdom",
"version": "0.2.7",
"version": "0.2.8",
"description": "A javascript implementation of the W3C DOM",

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

@@ -1109,4 +1109,14 @@ var path = require("path");

test.done();
},
issue_335_inline_event_handlers : function(test) {
var doc = jsdom.html('<a onclick="somefunction()">call some function</a>');
var a = doc.getElementsByTagName('a').item(0);
var onclick = a.getAttribute('onclick');
test.notEqual(onclick, null);
test.equal(onclick, 'somefunction()');
test.ok(doc.innerHTML.indexOf('onclick') > -1);
test.done();
}
};

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