mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
Remote end step of [element send keys](https://w3c.github.io/webdriver/#element-send-keys) > Step 8.2. Set the text insertion caret using [set selection range](https://w3c.github.io/webdriver/#dfn-set-selection-range) using current text length for both the start and end parameters. Also check if the element is already an active element before focusing (Step 7.7). Testing: `./tests/wpt/tests/webdriver/tests/classic/element_send_keys/form_controls.py` --------- Signed-off-by: PotatoCP <Kenzie.Raditya.Tirtarahardja@huawei.com> Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja18@gmail.com> Co-authored-by: Euclid Ye <yezhizhenjiakang@gmail.com>