1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/HTMLSelectElement.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * The origin of this IDL file is 1.10 + * http://www.whatwg.org/html/#the-select-element 1.11 + */ 1.12 + 1.13 +interface HTMLSelectElement : HTMLElement { 1.14 + [SetterThrows, Pure] 1.15 + attribute boolean autofocus; 1.16 + [SetterThrows, Pure] 1.17 + attribute boolean disabled; 1.18 + [Pure] 1.19 + readonly attribute HTMLFormElement? form; 1.20 + [SetterThrows, Pure] 1.21 + attribute boolean multiple; 1.22 + [SetterThrows, Pure] 1.23 + attribute DOMString name; 1.24 + [SetterThrows, Pure] 1.25 + attribute boolean required; 1.26 + [SetterThrows, Pure] 1.27 + attribute unsigned long size; 1.28 + 1.29 + [Pure] 1.30 + readonly attribute DOMString type; 1.31 + 1.32 + [Constant] 1.33 + readonly attribute HTMLOptionsCollection options; 1.34 + [SetterThrows, Pure] 1.35 + attribute unsigned long length; 1.36 + getter Element? item(unsigned long index); 1.37 + HTMLOptionElement? namedItem(DOMString name); 1.38 + [Throws] 1.39 + void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null); 1.40 + void remove(long index); 1.41 + [Throws] 1.42 + setter creator void (unsigned long index, HTMLOptionElement? option); 1.43 + 1.44 + readonly attribute HTMLCollection selectedOptions; 1.45 + [SetterThrows, Pure] 1.46 + attribute long selectedIndex; 1.47 + [Pure] 1.48 + attribute DOMString value; 1.49 + 1.50 + readonly attribute boolean willValidate; 1.51 + readonly attribute ValidityState validity; 1.52 + readonly attribute DOMString validationMessage; 1.53 + boolean checkValidity(); 1.54 + void setCustomValidity(DOMString error); 1.55 + 1.56 +// NYI: readonly attribute NodeList labels; 1.57 + 1.58 + // https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720 1.59 + void remove(); 1.60 +};