compositionupdate

The DOM compositionupdate event is fired synchronously when the text being edited with the IME is changed.

Note: This event is not fired if when the IME is first opened if the starting text is an empty string; if there is non-empty starting text, it's fired when the initial text is configured.
  • Interface :CompositionEvent
  • Synchronicity :synchronous
  • Bubbles : yes
  • Target : Element
  • Cancelable : no
  • Default action : none

Specification

DOM Level3 Events

Browser compatibility

  • Desktop
  • Mobile

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support

(Yes)

Not dispatched immediately after compositionstart event.

9.0 (9.0) (Yes) -- ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 9.0 (9.0) ? ? ?

Gecko notes

compositionupdate events are fired before editor contents are actually changed; that is, the value of an editable element has not yet been changed when compositionupdate event handlers are called. Starting in Gecko 12.0 (Firefox 12.0 / Thunderbird 12.0) , input events are fired while editing is underway, after the contents of the element are changed. This lets you get the updated contents while editing is underway.

Tags (6)

Edit tags

Attachments (0)

 

Attach file