This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
ladybird
Watch
2
Star
0
Fork
You've already forked ladybird
0
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2026-04-19 10:20:22 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
fff09ed330
ladybird
/
Tests
/
LibWeb
/
Text
/
expected
/
Editing
/
execCommand-insertText.txt
6 lines
82 B
Text
Raw
Normal View
History
Unescape
Escape
LibWeb: Fire `input` events in `.execCommand()` We do not fire `beforeinput` events since other browsers do not seem to do so either. The spec asks us to check whether a command's action modified the DOM tree. This means adding or removing nodes and attributes, or changing character data anywhere in the tree. We have `Document::dom_tree_version()` for node updates, but for character data a new version number is introduced that allows us to easily keep track of any text changes in the entire tree.
2025-01-23 10:50:00 +01:00
input triggered
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-23 11:43:21 +02:00
#text 6 - #text 6
input triggered
#text 8 - #text 8
foobaz🙂bar
Reference in a new issue
Copy permalink