happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

XMLParser Error

Open Mas0nShi opened this issue 2 years ago • 0 comments

e.g.

const { Window } = require("../packages/happy-dom");

const window = new Window(), document = window.document;

document.write(`<html>
<!--[if lt IE 9]>
    <script>window.location = 'browser.htm';</script>
<![endif]-->
</html>`);

console.log(window.location);

this will result in incorrect loading scripts window.location = 'browser.htm';

Mas0nShi avatar Jun 25 '22 05:06 Mas0nShi