Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIDOMXULControlElement.idl"
7 interface nsIDOMXULSelectControlItemElement;
9 [scriptable, uuid(9bf188a7-d6f9-431b-b5c7-118013998e8b)]
10 interface nsIDOMXULSelectControlElement : nsIDOMXULControlElement {
11 attribute nsIDOMXULSelectControlItemElement selectedItem;
12 attribute long selectedIndex;
14 attribute DOMString value;
16 nsIDOMXULSelectControlItemElement appendItem(in DOMString label, in DOMString value);
17 nsIDOMXULSelectControlItemElement insertItemAt(in long index, in DOMString label, in DOMString value);
18 nsIDOMXULSelectControlItemElement removeItemAt(in long index);
20 readonly attribute unsigned long itemCount;
21 long getIndexOfItem(in nsIDOMXULSelectControlItemElement item);
22 nsIDOMXULSelectControlItemElement getItemAtIndex(in long index);
23 };