CompositionEvent.CompositionEvent()

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The CompositionEvent() constructor creates a new CompositionEvent object instance.

Syntax

 myEvent = new CompositionEvent(typeArg, CompositionEventInit)

Values

typeArg
Is a DOMString representing the name of the event.
CompositionEventInitOptional
A CompositionEventInit dictionary object, which can contain the following members:
  • data: Initializes the data attribute of the CompositionEvent object to the characters generated by the IME composition.

Note: The CompositionEventInit dictionary inherits from the UIEventInit dictionary, so can also accept members defined on there.

Specifications

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

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) 53 (53) (Yes) No support ?
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? (Yes) 53.0 (53) ? ? ?

See also

ドキュメントのタグと貢献者

このページの貢献者: vapier, chrisdavidmills
最終更新者: vapier,