compositionstart

  • Revision slug: DOM/DOM_event_reference/compositionstart
  • Revision title: compositionstart
  • Revision id: 35106
  • Created:
  • Creator: Masayuki
  • Is current revision? No
  • Comment page created, 120 words added

Revision Content

Summary

The compositionstart event is defined in DOM Level3 Events. It is fired when indirect text inputting starts.

Type

compositionstart

Interface

CompositionEvent

Sync/Async

Sync

Bubbles

Yes

Target

Element

Cancelable

Yes, but Gecko doesn't allow to cancel compositionstart, see Notes.

Default action

Launch text composition system, but Gecko fires compositionstart when the system starts composition actually.

Notes

Spec of DOM Level3 Events said compositionstart is cancelable, however, Gecko doesn't allow to cancel compositionstart event.

Gecko fires this event when IME starts composition and some platforms don't have API for cancelling the composition forcibly. Gecko cannot know whether a keyboard event will start composition or not until IME actually starts composition.

Therefore, Gecko cannot support preventDefault() of compositionstart.

Revision Source

<h2>Summary</h2>
<p>The <code>compositionstart</code> event is defined in DOM Level3 Events. It is fired when indirect text inputting starts.</p>
<h2>Type</h2>
<p><code>compositionstart</code></p>
<h2>Interface</h2>
<p><a href="/en/DOM/CompositionEvent" title="en/DOM/CompositionEvent">CompositionEvent</a></p>
<h2>Sync/Async</h2>
<p>Sync</p>
<h2>Bubbles</h2>
<p>Yes</p>
<h2>Target</h2>
<p>Element</p>
<h2>Cancelable</h2>
<p>Yes, but Gecko doesn't allow to cancel <code>compositionstart</code>, see <a href="/#Notes" title="#Notes">Notes</a>.</p>
<h2>Default action</h2>
<p>Launch text composition system, but Gecko fires <code>compositionstart</code> when the system starts composition actually.</p>
<h2>Notes</h2>
<p>Spec of DOM Level3 Events said <code>compositionstart</code> is cancelable, however, Gecko doesn't allow to cancel <code>compositionstart</code> event.</p>
<p>Gecko fires this event when IME starts composition and some platforms don't have API for cancelling the composition forcibly. Gecko cannot know whether a keyboard event will start composition or not until IME actually starts composition.</p>
<p>Therefore, Gecko cannot support <code>preventDefault()</code> of <code>compositionstart</code>.</p>
Revert to this revision