LibWeb: Always call document.close
after document.write
This ensures the HTML parser completes running if it previously stopped at an insertion point during a call to `document.write`.
This commit is contained in:
parent
179641a297
commit
2303142386
Notes:
github-actions[bot]
2024-09-21 16:43:13 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/23031423865 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1471 Reviewed-by: https://github.com/awesomekling ✅
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
<script type="text/javascript">
|
||||
document.write("<p");
|
||||
document.write(">hello</p>");
|
||||
document.close();
|
||||
</script>
|
||||
|
||||
<p>friends!</p>
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
<script>
|
||||
test(() => {
|
||||
document.write("PASS");
|
||||
document.close();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue