w3c / uievents

UI Events
https://w3c.github.io/uievents/
Other
145 stars 52 forks source link

onbeforeinput #218

Open johanneswilm opened 5 years ago

johanneswilm commented 5 years ago

Hey,

as far as I can tell, there should be a onbeforeinput IDL attribute [1]. If we don't have this, I don't see how we can do feature detection of the beforeinput event, which now turns out to be a problem in Firefox [2].

[1] https://w3ctag.github.io/design-principles/#always-add-event-handlers

[2] https://github.com/w3c/input-events/issues/30#issuecomment-452584877

masayuki-nakano commented 5 years ago

Filed Chromium's bug.

Firefox will add it when we ship "beforeinput" event.

masayuki-nakano commented 5 years ago

@garykac Could you ask somebody who can work on the Chromium's bug? We worry about compatibility issue when we ship "beforeinput" event since currently web apps needs to check UA string to consider whether the browser supports "beforeinput" or not.

phistuck commented 5 years ago

It seems to me like this should be filed against the HTML specification, because the UI events specification does not define the interfaces on which the event handler should be located. This should be added to GlobalEventHandlers.