I realize that Chrome returns null from getTargetRanges() of beforeinput event after its propagation finished. But in untrusted events, it's initialized with the dictionary and returns same value even the ranges become invalid due to DOM mutation. So, I was thinking that it should keep returning same value which is created by browser's editor before dispatching the beforeinput event.
I realize that Chrome returns
null
fromgetTargetRanges()
ofbeforeinput
event after its propagation finished. But in untrusted events, it's initialized with the dictionary and returns same value even the ranges become invalid due to DOM mutation. So, I was thinking that it should keep returning same value which is created by browser's editor before dispatching thebeforeinput
event.