LibWeb: Implement document.execCommand('insertLinebreak')

This commit is contained in:
Jelle Raaijmakers 2024-12-10 16:16:56 +01:00 committed by Jelle Raaijmakers
commit 495006ddb5
Notes: github-actions[bot] 2024-12-10 18:35:28 +00:00
4 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Before: "foobar"
After: "foo<br>bar"
Before: "<p style="white-space: pre">foobar</p>"
After: "<p style="white-space: pre">foo
bar</p>"
Before: "<p style="white-space: pre">foobar</p>"
After: "<p style="white-space: pre">foobar
</p>"