untitled notebook

node v10.24.1
endpointsharetweet
const {JSDOM} = require('jsdom'); var jsDomDoc = new JSDOM(`<!doctype html><html><head><title>some doc</title></head> <body><div id="my-div" /></body></html>`); var document = jsDomDoc.window.document; var elem = document.getElementById("my-div"); console.log(elem); console.log(jsDomDoc.serialize()); //returns null
Loading…

no comments

    sign in to comment