Initialize selection to end of editing host if sending keys to editable element via WebDriver
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
People
(Reporter: masayuki, Unassigned)
Details
There is a test:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/webdriver/tests/element_send_keys/content_editable.py
The test is intended to test WebDriver sets focus to editable element and collapse selection to end of the editor because the issue added the test explains so.
I believe that we need to find the last
Text
node that is a child ofelement
and then callsetSelection
on that if dealing with a Content Editable. In addition, we probably don't want theselect
event firing.
However, it seems that there is no agreements across browser vendors because Safari does not do it. And Gecko unexpectedly have passed the tests, but editor will stop initializing Selection
unless entire the document is editable (bug 1789967).
Therefore, I think that it needs agreements between browser vendors before changing the WebDriver behavior.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•