Comparing version 0.8.0 to 0.8.1
@@ -9,3 +9,3 @@ var http = require('http'), | ||
jsdom = require('../../jsdom'), | ||
Location = require('./Location'), | ||
Location = require('./location'), | ||
NOT_IMPLEMENTED = require('./utils').NOT_IMPLEMENTED, | ||
@@ -12,0 +12,0 @@ CSSStyleDeclaration = require('cssstyle').CSSStyleDeclaration, |
@@ -80,3 +80,3 @@ "use strict"; | ||
replace: function (val) { | ||
window.location.href = val; | ||
this.href = val; | ||
}, | ||
@@ -83,0 +83,0 @@ |
{ | ||
"name": "jsdom", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A JavaScript implementation of the W3C DOM", | ||
@@ -51,8 +51,6 @@ "keywords": ["dom", "w3c", "html"], | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://github.com/tmpvar/jsdom/blob/master/LICENSE.txt" | ||
} | ||
], | ||
"license": { | ||
"type": "MIT", | ||
"url": "http://github.com/tmpvar/jsdom/blob/master/LICENSE.txt" | ||
}, | ||
"repository": { | ||
@@ -66,3 +64,3 @@ "type": "git", | ||
"dependencies": { | ||
"htmlparser2": "3.x", | ||
"htmlparser2": ">= 3.1.5 <4", | ||
"nwmatcher": "~1.3.1", | ||
@@ -69,0 +67,0 @@ "request": "2.x", |
@@ -216,11 +216,2 @@ # jsdom | ||
### Creating a document-less window | ||
```js | ||
var jsdom = require("jsdom"); | ||
var window = jsdom.createWindow(); | ||
console.log(window.document); // output: undefined | ||
``` | ||
### Creating a document | ||
@@ -299,3 +290,3 @@ | ||
jsdom/index 76/76 100% | ||
jsdom/parsing 8/8 100% | ||
jsdom/parsing 10/10 100% | ||
jsdom/env 25/25 100% | ||
@@ -305,3 +296,3 @@ jsonp/jsonp 1/1 100% | ||
--------------------------------------- | ||
TOTALS: 0/2618 failed; 100% success | ||
TOTALS: 0/2620 failed; 100% success | ||
``` | ||
@@ -308,0 +299,0 @@ |
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
351813
335
Updatedhtmlparser2@>= 3.1.5 <4