Skip to content

Commit 36497b2

Browse files
committed
Merge pull request mathjax#112 from mathjax/iojs
update jsdom for iojs / nodejs v4 compatibility
2 parents 4756c7f + e8c7cd7 commit 36497b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/mj-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var STYLES; // filled in when SVG is loaded
116116
function GetWindow() {
117117
document = jsdom();
118118
html = document.firstChild;
119-
window = document.parentWindow;
119+
window = document.defaultView;
120120
window.console = console;
121121
window.onerror = function (err,url,line) {AddError("Error: "+err)}
122122
content = document.body.appendChild(document.createElement("div"));

lib/mj-single.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var delimiters = {
117117
function GetWindow() {
118118
document = jsdom();
119119
html = document.firstChild;
120-
window = document.parentWindow;
120+
window = document.defaultView;
121121
window.console = console;
122122
window.onerror = function (err,url,line) {AddError("Error: "+err)}
123123
content = document.body.appendChild(document.createElement("div"));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "git://github.com/mathjax/MathJax-node.git"
1919
},
2020
"dependencies": {
21-
"jsdom": "3.1.1",
21+
"jsdom": "*",
2222
"speech-rule-engine": "*",
2323
"yargs": "*",
2424
"MathJax": "https://github.com/mathjax/MathJax/tarball/mathjax-node-2.5.1"

0 commit comments

Comments
 (0)