mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
There are actually a couple of bugs here: 1. As of commitebda8fcf11, editing hosts are now excluded from Node::is_editable. Since this special hit test handling is specifically for contenteditable nodes, we would not enter this branch for these nodes. 2. We were not checking if the contenteditable node actually contained the hit testing position. So if a page had multiple empty editable nodes, we would just return whichever was hit test first. These bugs were exposed by7c9b3c08fa. This commit resulted in the text cursor hit test node being set as the document focus node. If we returned the wrong result, we would not set the correct node. This was seen on discord, where clicking the message box would result in the search box being focused.
3 lines
32 B
Plaintext
3 lines
32 B
Plaintext
<DIV id="div1">
|
|
<DIV id="div2">
|