The DOM CompositionEvent
represents events that occur due to the user indirectly entering text.
CompositionEvent()
CompositionEvent
object instance.This interface also inherits properties of its parent, UIEvent
, and its ancestor — Event
.
CompositionEvent.data
Read only
CompositionEvent
object.CompositionEvent.locale
Read only
This interface also inherits methods of its parent, UIEvent
, and its ancestor — Event
.
CompositionEvent.initCompositionEvent()
CompositionEvent
object.Specification | Status | Comment |
---|---|---|
UI Events The definition of 'CompositionEvent' in that specification. | Working Draft | |
Document Object Model (DOM) Level 3 Events Specification The definition of 'CompositionEvent' in that specification. | Obsolete |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | Yes | Yes | 9 | Yes | No | ? |
CompositionEvent() constructor |
Yes | ? | 53 | Yes | No | ? |
data |
Yes | Yes | 9 | Yes | No | ? |
initCompositionEvent
|
Yes | Yes | 9 | Yes | No | ? |
locale
|
Yes | Yes | 9 | Yes | No | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | 9 | ? | ? | ? |
CompositionEvent() constructor |
Yes | Yes | ? | 53 | ? | ? | ? |
data |
Yes | Yes | Yes | 9 | ? | ? | ? |
initCompositionEvent
|
Yes | Yes | Yes | 9 | ? | ? | ? |
locale
|
Yes | Yes | Yes | 9 | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent