LibWeb: Allow Element.insertAdjacentHTML on the document element

This fixes wpt/domparsing/insert_adjacent_html.html
This commit is contained in:
Andreas Kling
2024-05-27 13:51:02 +02:00
parent f12dae7ea4
commit 802af5ad9d
Notes: sideshowbarker 2024-07-17 10:54:57 +09:00
3 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
<script src="../include.js"></script>
<script>
test(() => {
document.documentElement.insertAdjacentHTML("afterbegin", "hello");
println("PASS (didn't crash)");
});
</script>