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

not load url assets when change the location.href

Open Mas0nShi opened this issue 2 years ago • 1 comments

const { GlobalRegistrator } = require("../packages/global-registrator");

GlobalRegistrator.register();

window.location.href = "https://www.google.com";
document.write(`<html><script>window.location.href = "https://www.google.com"; </script></html>`);
console.log(document.getElementsByTagName("html")[0].getInnerHTML());
// <script>window.location.href = "https://www.google.com"; </script>

Mas0nShi avatar Mar 17 '22 13:03 Mas0nShi

it's async to load web resources when change the location.href...

Mas0nShi avatar Jun 15 '22 07:06 Mas0nShi