You can find the spec for DOMParser here
The following example produce an incorrect output using JSDOM.
console.log(
(new window.DOMParser())
.parseFromString('<noscript><div>foo</div><img /></noscript>', 'text/html')
.body
.innerHTML
);
Chrome
JSDom
Nothing.
If this is related to JSDom script configuration, I think (based on DOMParser spec) it should override the config.
I'm happy to help with a PR.
Edit:
In the HEAD:
console.log(
(new window.DOMParser())
.parseFromString('<noscript><div>foo</div><img /></noscript>', 'text/html')
.head // <---
.innerHTML
);
JSDom
<noscript><div>foo</div><img /></noscript>
Chrome
You can find the spec for DOMParser here
The following example produce an incorrect output using JSDOM.
Chrome
JSDom
Nothing.
If this is related to JSDom script configuration, I think (based on DOMParser spec) it should override the config.
I'm happy to help with a PR.
Edit:
In the HEAD:
JSDom
Chrome