1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * https://w3c.github.io/uievents/#interface-compositionevent
8 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
9 * liability, trademark and document use rules apply.
13 interface CompositionEvent : UIEvent
15 constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
17 readonly attribute DOMString? data;
18 // locale is currently non-standard
19 readonly attribute DOMString locale;
22 * ranges is trying to expose TextRangeArray in Gecko so a
23 * js-plugin couble be able to know the clauses information
25 [ChromeOnly,Cached,Pure]
26 readonly attribute sequence<TextClause> ranges;
29 dictionary CompositionEventInit : UIEventInit {
33 partial interface CompositionEvent
35 void initCompositionEvent(DOMString typeArg,
36 optional boolean canBubbleArg = false,
37 optional boolean cancelableArg = false,
38 optional Window? viewArg = null,
39 optional DOMString? dataArg = null,
40 optional DOMString localeArg = "");