mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Put cursor in last text node when contenteditable is focused
With this change we match behavior of other engines a bit more closer.
This commit is contained in:
committed by
Tim Flynn
parent
da42c19cb6
commit
d88e6bee5d
Notes:
github-actions[bot]
2024-10-22 12:46:09 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/d88e6bee5d1 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1903 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/trflynn89 ✅
@@ -0,0 +1,10 @@
|
||||
<script src="include.js"></script>
|
||||
<div id="editable" contenteditable="true"><p id="text">hello</p></div>
|
||||
<script>
|
||||
test(() => {
|
||||
const editable = document.getElementById('editable');
|
||||
internals.sendText(editable, "!!!");
|
||||
const text = document.getElementById('text');
|
||||
println(text.textContent);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user