w3c / input-events

Input Events
https://w3c.github.io/input-events/
Other
23 stars 16 forks source link

Define what should return `getTargetRanges()` of `beforeinput` after propagation #114

Open masayuki-nakano opened 3 years ago

masayuki-nakano commented 3 years ago

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.