CompositionEvent.initCompositionEvent()

Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The initCompositionEvent() method of the CompositionEvent interface initializes the attributes of a CompositionEvent object instance.

Syntax

 compositionEventInstance.initCompositionEvent(typeArg, canBubbleArg, cancelableArg, viewArg, dataArg, localeArg)

Parameters

typeArg
A DOMString representing the type of composition event; this will be one of compositionstart, compositionupdate, or compositionend.
canBubbleArg
A Boolean specifying whether or not the event can bubble.
cancelableArg
A Boolean shether or not the event can be canceled.
viewArg
The Window object from which the event was generated.
dataArg
A DOMString representing the value of the data attribute.
localeArg
A DOMString representing the value of the locale attribute.

Return value

Void.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'initCompositionEvent()' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
DeprecatedNon-standard
Chrome Full support YesEdge Full support YesFirefox Full support 9IE Full support YesOpera No support NoSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 9Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Non-standard. Expect poor cross-browser support.
Non-standard. Expect poor cross-browser support.
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

See also

Étiquettes et contributeurs liés au document

Contributeurs à cette page : wbamberg, karlstolley, chrisdavidmills
Dernière mise à jour par : wbamberg,