You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note : this issue does not exist in Chrome Canary because the focus seems to always be moved to the range start point before the insertion.
In this specification, do we consider the insert point must always be at the first StaticRange InputEvent.getgetTargetRanges()[0] start point ?
Example :
ab<em>cd</em>
If you select
bc
from left to right (focus node is in<em/>
) and typeX
, you will get :a<em>Xd</em>
If you select
bc
from right to left (focus node is before<em/>
) and typeX
, you will get :aX<em>d</em>
But the 2 events (type=beforeInput, inputType=insertText) are identical :
getTargetRanges()
will not help.The
Selection.focusNode
andSelection.focusOffset
are missing in the InputEvent in order to know where the insertion will take place.The text was updated successfully, but these errors were encountered: