Implement indexed access on select elements

refs #11763
This commit is contained in:
Maciej Skrzypkowski 2016-09-22 09:16:46 +02:00
parent 614e9ca840
commit 670693ba7e
5 changed files with 48 additions and 41 deletions

View file

@ -15,8 +15,8 @@ interface HTMLSelectElement : HTMLElement {
readonly attribute DOMString type;
//readonly attribute HTMLOptionsCollection options;
// attribute unsigned long length;
//getter Element? item(unsigned long index);
attribute unsigned long length;
getter Element? item(unsigned long index);
//HTMLOptionElement? namedItem(DOMString name);
// Note: this function currently only exists for union.html.
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);