LibWeb: Port document.execCommand and InputEvent to UTF-16

This commit is contained in:
Timothy Flynn 2025-07-25 15:57:20 -04:00 committed by Jelle Raaijmakers
commit 2da615ed31
Notes: github-actions[bot] 2025-07-25 22:41:42 +00:00
8 changed files with 25 additions and 24 deletions

View file

@ -43,7 +43,7 @@ void EditingHostManager::handle_insert(Utf16String const& value)
// once or in quick succession, this specification does not define whether it is treated as one insertion or several
// consecutive insertions.
auto editing_result = m_document->exec_command(Editing::CommandNames::insertText, false, value.to_utf8_but_should_be_ported_to_utf16());
auto editing_result = m_document->exec_command(Editing::CommandNames::insertText, false, value);
if (editing_result.is_exception())
dbgln("handle_insert(): editing resulted in exception: {}", editing_result.exception());
}