CompositionEvent: data プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2017.
data
は CompositionEvent
インターフェイスの読み取り専用プロパティで、
このプロパティは、イベントを発生させた入力システムによって生成された文字を返します。その正確な性質は、 CompositionEvent
オブジェクトを生成したイベントの種類によって異なります。
値
イベントデータを表す文字列です。
compositionstart
イベントの場合、これは現在選択されている文字列で、変換中の文字列で置き換えられます。この値は、コンテンツが選択範囲を変更しても変更されません。むしろ、変換が始まったときに選択されていた文字列を示します。compositionupdate
の場合、編集中の現在の文字列となります。compositionend
イベントの場合、これは入力システムが確定した文字列です。
仕様書
Specification |
---|
UI Events # dom-compositionevent-data |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.