3.6.7.2 compositionupdate
3.6.7.2. compositionupdate
Тип
compositionupdate
Интерфейс
CompositionEvent
Синхронность / Асинхронность
Синхронно
Всплытие
Да
Доверенные цели
Element
Отменяемость
No
Композиция
Да
Действие по умолчанию
Нет
Контекст (доверенные события)
Event.target : focused element processing the composition, null if not accessible
UIEvent.view : Window
UIEvent.detail : 0
CompositionEvent.data : the string comprising the current results of the composition session, which MAY be the empty string if the content has been deleted
A user agent SHOULD dispatch this event during a composition session when a text composition system updates its active text passage with a new character, which is reflected in the string in data.
In text composition systems which keep the ongoing composition in sync with the input control, the compositionupdate event MUST be dispatched before the control is updated.
Some text composition systems might not expose this information to the DOM, in which case this event will not fire during the composition process.
If the composition session is canceled, this event will be fired immediately before the compositionend event, and the data attribute will be set to the empty string.