Socket
Socket
Sign inDemoInstall

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.10.1 to 0.10.2

13

lib/jsdom/browser/history.js
"use strict";
var URL = require('url');
function StateEntry(data, title, url) {

@@ -71,13 +73,4 @@ this.data = data;

_applyState: function(state) {
var url = state.url;
var pathname;
this._location._url = URL.parse(URL.resolve(this._location._url.href, state.url));
// Absolute path
if (state.url.charAt(0) === "/") {
pathname = state.url;
} else {
pathname = [this._location.pathname, state.url].join("/");
}
this._location._url.pathname = pathname;
this._signalPopstate(state);

@@ -84,0 +77,0 @@ },

@@ -488,3 +488,3 @@ var core = require("./core").dom.level2.core,

}
node.innerHTML = text;
node.innerHTML = text || "<html><head></head><body></body></html>";
} else {

@@ -491,0 +491,0 @@ this.innerHTML = text;

{
"name": "jsdom",
"version": "0.10.1",
"version": "0.10.2",
"description": "A JavaScript implementation of the W3C DOM",

@@ -8,3 +8,3 @@ "keywords": ["dom", "w3c", "html"],

"Elijah Insua <tmpvar@gmail.com> (http://tmpvar.com)",
"Domenic Denicola <domenic@domenicdenicola.com (http://domenicdenicola.com)"
"Domenic Denicola <domenic@domenicdenicola.com (http://domenic.me/)"
],

@@ -11,0 +11,0 @@ "contributors": [

@@ -130,3 +130,3 @@ # jsdom

- `config.document`:
- `referer`: the new document will have this referer.
- `referrer`: the new document will have this referrer.
- `cookie`: manually set a cookie value, e.g. `'key=value; expires=Wed, Sep 21 2011 12:00:00 GMT; path=/'`.

@@ -133,0 +133,0 @@ - `cookieDomain`: a cookie domain for the manually set cookie; defaults to `127.0.0.1`.

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