1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 14:05:01 +00:00
serenity/Tests/LibWeb/Text/input/HTML/img-src-in-innerHTML-crash.html
Andreas Kling 70193c0009 LibWeb: Let Document have a direct GCPtr to its containing Web::Page
With this change, Document now always has a Web::Page. This means we no
longer rely on the breakable link between Document and BrowsingContext
to find a relevant Web::Page.

Fixes #22290
2023-12-15 22:04:46 +01:00

9 lines
257 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
let e = document.createElement("div");
e.innerHTML = "<img src='data:text/png,'>";
println("PASS! (Didn't crash)");
println(e.firstChild.src);
});
</script>