mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Draw caret for empty contenteditable elements
We don't have a text node in these, so no fragments either. Maintaining a special case for this situation seems much simpler than reworking `contenteditable`s to always have a fragment.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
3bc4374344
commit
d3a2e4bbbb
Notes:
github-actions[bot]
2026-02-11 10:29:15 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/d3a2e4bbbbb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7859
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div contenteditable style="width: 100px; height: 20px"></div>
|
||||
<script>
|
||||
test(() => {
|
||||
document.querySelector("div").focus();
|
||||
println(internals.dumpDisplayList());
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user