mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
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`. (cherry picked from commit 230314238655204b89dd0736da4537b475eb252a)
This commit is contained in:
parent
c11cf1f5aa
commit
26551f6700
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