Trying to access the dom of something like
http://bl.ocks.org/mbostock/raw/4061502/ or even a static non-moving version like
http://bl.ocks.org/mbostock/raw/3883245/, when I get the dom through jsdom there is no svg node element and I can't see any of the information relating to anything on the screen. Is there any way to do this with jsdom, do I need a different approach or just different code? Thanks in advance.
Tried several different approaches outlined in readme of jsdom, this is an example of something I tried.
var jsdom = require("jsdom");
jsdom.env(
function (errors, window) {
console.log(window.$("box").length); //outputs 0
console.log(window.document.getElementsByClassName("box").length); //also outputs 0
}
);