Browser input
events have been around long enough to be categorised into at least three different levels of support beside "no support", by now (recent history about the W3C specs on github):
- InputEvents Level 0? (no
inputType
, norbeforeinput
, support) - https://www.w3.org/TR/input-events-1/ (introduces a
beforeinput
event, and theinputType
property, among other things) - https://www.w3.org/TR/input-events-2/ (introduces a few new composition related
inputType
s -deleteByComposition
,insertCompositionText
,insertFromComposition
)
How do you detect support for beforeinput
events? At present time of writing (April 2018), Firefox is at 0, Chrome and Safari further along.