Files
ladybird/Tests/LibWeb/Text/expected/selection-in-focused-editing-host.txt
Jelle Raaijmakers c9d4913bb4 LibWeb: Do not modify selection if editing host is already selected
If an editing host receives focus, we would always set a new selection
range. However, we only need to do that if we're not already part of the
active range. This corresponds to behavior shown by Chrome and Firefox.
2025-08-01 10:09:26 +02:00

6 lines
211 B
Plaintext

Range: [object Text] 1 [object Text] 2
document.activeElement: [object HTMLDivElement]
Selection must be the same as above:
Range: [object Text] 1 [object Text] 2
document.activeElement: [object HTMLDivElement]