WebDriver:ElementSendKeys has to set caret for content-editable elements after any child content
Categories
(Remote Protocol :: Marionette, defect, P3)
Tracking
(Not tracked)
People
(Reporter: whimboo, Unassigned, NeedInfo)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [webdriver:backlog])
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•2 years ago
|
||
Note that we should be careful to only update the caret position if the element does not have focus yet (see current issue for regular inputs at https://github.com/mozilla/geckodriver/issues/2015)
Reporter | ||
Comment 5•2 years ago
|
||
We had a similar fix for normal input fields and this got fixed in bug 1203074. Looks like we missed to also apply it to content editable fields at this time.
Lets discuss if we want / can get this fixed in a timely manner given that this is still marked as a P2 but was missed for too long.
Comment 7•2 years ago
|
||
Note that contenteditable
can end with:
<br>
element which is invisible if the editing host is a block- white space only invisible text node if the exiting host is a block
- preformatted
\n
which is invisible if the editing host is a block andwhite-space: pre
or similer style - empty inline elements such as
<b><i></i></b>
which are mainly created by editor's bug - non-editaable element such as
<span contenteditable="false">
- atomic and/or replaced elements such as
<img>
,<hr>
,<input>
and<textarea>
Updated•2 years ago
|
Reporter | ||
Comment 8•2 years ago
|
||
We should have a look if this has been fixed. I'll have a look.
Comment 9•2 years ago
|
||
Masayuki: I think bug 1791736 should have fixed this. Do you agreee that the patch there will handle the edge cases you identified above? Maybe there's something different we should be doing here?
Updated•2 years ago
|
Comment 10•2 years ago
|
||
According to the change here, it depends on how HTMLEditor
handles with collapsed Selection
at end of an editing host which have non-text node as its last leaf node, i.e., the behavior is not stable. And the patch does not contain enough test for the cases. Therefore, at least we should add edge case tests.
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•