mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Add stub implementation of HTMLOptionsCollection
This is a subtype of `DOM::HTMLCollection` that only holds `HTMLOptionElement`s. In this stub implementation only `item`, `namedItem` and `length`, inherited from HTMLCollection, are exposed. This is good enough for applications that only read the collection.
This commit is contained in:
committed by
Andreas Kling
parent
6f4dde253f
commit
624527f15e
12
Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.idl
Normal file
12
Userland/Libraries/LibWeb/HTML/HTMLOptionsCollection.idl
Normal file
@@ -0,0 +1,12 @@
|
||||
#import <DOM/HTMLCollection.idl>
|
||||
#import <HTML/HTMLOptionElement.idl>
|
||||
#import <HTML/HTMLOptGroupElement.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface HTMLOptionsCollection : HTMLCollection {
|
||||
// [CEReactions] attribute unsigned long length; // shadows inherited length
|
||||
// [CEReactions] setter undefined (unsigned long index, HTMLOptionElement? option);
|
||||
// [CEReactions] undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
// [CEReactions] undefined remove(long index);
|
||||
// attribute long selectedIndex;
|
||||
};
|
||||
Reference in New Issue
Block a user