ladybird/Tests/LibWeb/Text/expected/Editing/execCommand-insertText.txt
Jelle Raaijmakers e029e785d2 LibWeb: Convert Editing API internals to UTF-16
Both sides of the Editing internals now have to deal with some awkward
converting between UTF-8 and UTF-16, but the upside is that it
immediately exposed an issue with the `insertText` command: instead of
dealing with code units, it was iterating over code points causing the
selection to be updated only once instead of twice. This resulted in the
final selection potentially ending up in between a surrogate pair.

Fixes #5547 (pasting/typing surrogate pairs).
2025-07-24 07:18:25 -04:00

5 lines
82 B
Text

input triggered
#text 6 - #text 6
input triggered
#text 8 - #text 8
foobaz🙂bar