Closed niole closed 4 years ago
failing repro:
const page = "<!DOCTYPE html><html lang="en"><head></head><body><script id="storeFinder" type="application/json">{"key":true}</script></body></html>" const root = parse(page); const storeFinder = document.querySelector("#storeFinder"); console.log("store finder exists", storeFinder !== null); console.log("no child nodes are kept", storeFinder.childNodes.length === 0);
Expectation: the parser keeps the child nodes of script tags as text nodes, like how the parser keeps text nodes of divs
divs
I have the same issue. Any idea how to work around it ?
Have just discovered that it is not just affect Githubissues.
failing repro:
Expectation: the parser keeps the child nodes of script tags as text nodes, like how the parser keeps text nodes of
divs