mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
These are simple calls through to the HTMLOptionsCollection functions the same names, as with HTMLSelectElement.add().
21 lines
718 B
Plaintext
21 lines
718 B
Plaintext
#import <HTML/HTMLElement.idl>
|
|
#import <HTML/HTMLOptionsCollection.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
|
|
[Exposed=Window]
|
|
interface HTMLSelectElement : HTMLElement {
|
|
|
|
[Reflect] attribute boolean disabled;
|
|
[Reflect] attribute boolean multiple;
|
|
[Reflect] attribute boolean required;
|
|
[SameObject] readonly attribute HTMLOptionsCollection options;
|
|
|
|
readonly attribute unsigned long length;
|
|
getter Element? item(unsigned long index);
|
|
getter Element? namedItem(DOMString name);
|
|
[CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
|
|
|
attribute long selectedIndex;
|
|
|
|
};
|