ladybird/Tests/LibWeb/Text/input/contenteditable-should-insert-into-nested-node.html
Aliaksandr Kalenik d88e6bee5d LibWeb: Put cursor in last text node when contenteditable is focused
With this change we match behavior of other engines a bit more closer.
2024-10-22 08:44:51 -04:00

10 lines
346 B
HTML

<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>