Comparing version 0.10.1 to 0.10.2
"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`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368630
10702