Bug 1634779 - pt 2. Partially revert Bug 1603006 r=kmag
[gecko.git] / dom / webidl / CompositionEvent.webidl
blobfa8ed8498c4c815a5baac364e41b1b8a7eb909e0
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/.
5  *
6  * https://w3c.github.io/uievents/#interface-compositionevent
7  *
8  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
9  * liability, trademark and document use rules apply.
10  */
12 [Exposed=Window]
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;
21  /**
22   * ranges is trying to expose TextRangeArray in Gecko so a
23   * js-plugin couble be able to know the clauses information
24   */
25   [ChromeOnly,Cached,Pure]
26   readonly attribute sequence<TextClause> ranges;
29 dictionary CompositionEventInit : UIEventInit {
30   DOMString data = "";
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 = "");