1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:57:35 +00:00

LibWeb: Append only one line feed character in Document.writeln

There were a couple issues here:

1. The line feed should only be appended once, rather than one per
   string.
2. The new_strings list of strings was unused (we were creating the new
   list, then passing the old list to Document.write).
This commit is contained in:
Timothy Flynn 2022-02-21 16:34:54 -05:00 committed by Andreas Kling
parent d94db1900e
commit 21bd3a21bd
2 changed files with 22 additions and 16 deletions

View file

@ -324,6 +324,8 @@ private:
void tear_down_layout_tree();
ExceptionOr<void> run_the_document_write_steps(String);
void increment_referencing_node_count()
{
VERIFY(!m_deletion_has_begun);