Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

DOMParser is not defined

const jsdom = require("jsdom");
const dom = new jsdom.JSDOM(`<!DOCTYPE html><p>Hello world</p>`);
dom.window.document.querySelector("p").textContent; // 'Hello world'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #DOMParser #defined
ADD COMMENT
Topic
Name
7+8 =