mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Add HTMLOptionsCollection selected index property
This commit is contained in:
parent
5c277144d8
commit
5decf4b33c
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/bplaat
Commit: 5decf4b33c
Pull-request: https://github.com/SerenityOS/serenity/pull/23895
Reviewed-by: https://github.com/shannonbooth
5 changed files with 29 additions and 1 deletions
|
@ -28,6 +28,9 @@ public:
|
|||
|
||||
WebIDL::ExceptionOr<void> add(HTMLOptionOrOptGroupElement element, Optional<HTMLElementOrElementIndex> before = {});
|
||||
|
||||
WebIDL::Long selected_index() const;
|
||||
void set_selected_index(WebIDL::Long);
|
||||
|
||||
private:
|
||||
HTMLOptionsCollection(DOM::ParentNode& root, Function<bool(DOM::Element const&)> filter);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue