3.4.3.1 beforeinput
3.4.3.1. beforeinput
Тип
beforeinput
Интерфейс
InputEvent
Синхронность / Асинхронность
Синхронно
Всплытие
Да
Доверенные цели
Element (specifically: control types such as HTMLInputElement, etc.) or any Element with contenteditable attribute enabled
Отменяемость
Да
Композиция
Да
Действие по умолчанию
Update the DOM element
Контекст (доверенные события)
Event.target : event target that is about to be updated
UIEvent.view : Window
UIEvent.detail : 0
InputEvent.data : the string containing the data that will be added to the element, which MAY be null if the content will be deleted
InputEvent.isComposing : true if this event is dispatched during a dead key sequence or while an input method editor is active (such that composition events are being dispatched); false otherwise.
A user agent MUST dispatch this event when the DOM is about to be updated.