mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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.
6 lines
211 B
Plaintext
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]
|